Nan Null | 1 Aug 01:27
Picon
Favicon

Re: Resources Folder message during startup.


I see.  Thank you for the explanation.

--- Curt Wilhelm <Curt.Wilhelm <at> Sun.COM> wrote:

> In the Java Blueprints, the Source Structure define
> the setup dir as a 
> place for application resources.  This is where you
> would put connection 
> pool, and jdbc resource files.
> 
>
http://java.sun.com/blueprints/code/projectconventions.html
> 
> Curt
> 
> Nan Null wrote:
> > I added this to the project.properties file (under
> > nbproject):
> > 
> > resource.dir=setup
> > 
> > and the problem goes away.  I don't know what that
> > "setup" is, and whether that is the right way of
> doing
> > it or not.
> > 
> > 
> > 
> > --- Curt Wilhelm <Curt.Wilhelm <at> Sun.COM> wrote:
(Continue reading)

markfrommer | 1 Aug 05:22
Picon

RE: NB 5.0 component array invalid variable name?

Then you have to set the variable name to myTextField[x].getName(), which
returns a String, and can be assigned to String variables. (myTextField[x]
is a JTextField.}

-----Original Message-----
From: Casey Vanderville [mailto:sup2up <at> yahoo.com] 
Sent: Monday, July 31, 2006 10:04 AM
To: nbusers <at> netbeans.org
Subject: RE: [nbusers] NB 5.0 component array invalid variable name?

It's set like this...

JTextField[]  myTextField = new JTextField[10];

Now all I want NB to do is say

myTextField[0] = new JTextField();

and so on...

--- markfrommer <markfrommer <at> cox.net> wrote:

> What is the data type of the array myTextField[]?
> 
> Mark
> 
> -----Original Message-----
> From: Casey Vanderville [mailto:sup2up <at> yahoo.com] 
> Sent: Saturday, July 29, 2006 12:59 PM
> To: nbusers <at> netbeans.org
(Continue reading)

markfrommer | 1 Aug 05:22
Picon

RE: Accessing coordinates from JButton ActionListener

Well, you could do something like this:

public class MyButton extends JButton
{
	int MyX;
	int MyY;

public int getX(){return MyX;}
public int getY(){return MyY;}
//other methods
}

public class MyFrame extends JFrame implements ActionListener
{

//other stuff

public void actionPerformed (ActionEvent e)
{
	int x = (MyButton)e.getSource().getX();
	int y = (MyButton)e.getSource().getY();
	//etc.
}
}

-----Original Message-----
From: Robert Williams [mailto:bobw2829 <at> yahoo.com] 
Sent: Monday, July 31, 2006 11:24 AM
To: nbusers <at> netbeans.org
Subject: RE: [nbusers] Accessing coordinates from JButton ActionListener
(Continue reading)

markfrommer | 1 Aug 05:22
Picon

RE: JSF and entity Controller

I don’t see a <f:view> tag.  Every faces page must be enclosed in <f:view>

 

Mark

 

From: Grover Blue [mailto:grover.blue <at> gmail.com]
Sent: Monday, July 31, 2006 2:09 PM
To: nbusers <at> netbeans.org
Subject: [nbusers] JSF and entity Controller

 

I'm trying to use the entity/controller generated from the netbeans wizard in a JSF page.  I have an enity of type Event, "event" is eventController, and the following JSP code.

The problem is that 'action="#{ event.detailSetup}"' never gets hit.  The page just flashes.  My goal is to list the events (like the generated List.jsp does), and redirect to a page detailing the specific event.  I pretty much copy the generated files from the wizard.  From looking at the below, is there something I'm missing?


********** /WEB-INF/faces/events.jsp **********

                        <h:dataTable styleClass="side_links" value='#{ event.eventsAsEvent}' var='item' border="0" cellpadding="0" cellspacing="0">
                            <h:column>
                                <h:graphicImage url="../images/orange_arrow.jpg" width="17" height="11" />
                                <h:outputText style="font-weight:bold;color:black;"  value="#{item.eventDate}" >
                                    <f:convertDateTime type="DATE" pattern="MM/dd/yyyy" />
                                </h:outputText>
                            </h:column>
                            <h:column>&nbsp;&nbsp;-&nbsp;&nbsp;</h:column>
                            <h:column>
                                <h:commandLink action="#{event.detailSetup}" title="#{item.title}"  >
                                    <f:param name="id" value="#{ item.id}"/>
                                    <f:param name="type" value="event" />
                                    <f:param name="layout" value="short" />
                                    <h:outputText  style="font-weight:bold;" value="#{item.title}"/>
                                </h:commandLink>
                            </h:column>
                        </h:dataTable>

********** /main.jsp **********

 <jsp:include page="/WEB-INF/faces/events.jsp" />


********** faces-config.xml **********

<faces-config version=" 1.2"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd ">
    <managed-bean>
        <managed-bean-name>event</managed-bean-name>
        <managed-bean-class>com.agois.site.EventController</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
        <from-view-id>/event/New.jsp</from-view-id>
        <navigation-case>
            <from-outcome>event_list</from-outcome>
            <to-view-id>/event/List.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
    <navigation-rule>
        <from-view-id>/event/List.jsp</from-view-id>
        <navigation-case>
            <from-outcome>event_create</from-outcome>
            <to-view-id>/event/New.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
     <navigation-rule>
        <from-view-id>/main.jsp</from-view-id>
        <navigation-case>
            <from-outcome>eventdetail</from-outcome>
            <to-view-id>/events.jsp</to-view-id>  <---------- NOTE, THIS IS NOT /WEB-INF/faces/events.jsp
        </navigation-case>
    </navigation-rule>
</faces-config>

Han Yi | 1 Aug 05:52
Picon

Re: serious problem about plain text file encoding

Hi, Maski Katakai,

I've voted to issue 42638. The 5th is mine. That issue also refers a letter which I wrote. I wonder why so few people care about this proplem. If I have enough time, I'd like study this issue myself very much. But, I have no enough time now. I really prefer Netbeans rather than Eclipse because it is coded by pure java. Hope NB don't disappoint people who like it indeed.


2006/7/28, Masaki Katakai <Masaki.Katakai <at> sun.com>:
Hi Daigo and Han,

Yes, I also agree with you. In Japanese case, it's very serious too.
Windows is using Shift_JIS encoding but UNIX/Linux is using
UTF-8/eucJP encoding. It's not possible to share NetBeans project
in these environments, which means it's not easy to use
the centralized VCS e.g. CVS and Subversion from different OS platform.

As you may know, Eclipse has such option. By default, Eclipse uses
the encoding of OS locale, but it can be changed to another on
option dialog. The option is provided per project, also per individual file.

http://www.netbeans.org/issues/show_bug.cgi?id=42638

I think this is the bug for this issue. Daigo, Han, will you
add your comments into the bug? Also I'd like to ask everyone
who wants the fix to put your opinion and vote to the bug.

Masaki

On 07/28/06 12:32 AM, Daigo Kobayashi wrote:
> Hi,
>
> I definitely agree with your opinion.
>
> Each file should have encoding property. And I also want to set default
> encoding to each project. Because if I have to work different encoding
> from OS's default, I have to change encoding property to every java files.
>
>
>
>> Hi, every one!
>>
>> Have you thought about the request of setting defferent encodings from OS
>> default of other text files? For example, we can't set the encoding of a
>> plain text file such as javascript (.js) files and a javascript file is
>>
>> often included by html files with tag <javascript src=".....>.
>> You know, the IDE's default encoding is OS default encoding. But
>> sometimes
>> in some projects, specially for web projects, there are many plain
>> text file
>>
>> whose encoding need to be different from system default. I know, for jsp,
>> html, xml files, NB can recognize them automatically. for java file,
>> there
>> is a encoding property. But for other plain text file, e.g. for a
>> javascript
>>
>> file which will be included in a jsp file whose encoding is UTF-8, we
>> can't
>> set its encoding to UTF-8. If there are non-ansi characters, they will be
>> saved and displayed incorrectly.
>>
>> I know, we can use the start parameter -
>> J-Dfile.encoding=UTF-8 to have IDE
>> treat all files default encoding to UTF-8. But if so, the output or debug
>> info panel will display the non-ansi characters incorrectly. How can we
>> debug? On the other hand, we sometimes develop several projects
>> together and
>>
>> each of them has own encoding.  or, Some files maybe are imported
>> which have
>> own encoding. What shall we do?
>>
>> I remember NB has the ability setting file encoding individually at
>> the time
>> of edition 3.*. Why did the developers throw away the property? Maybe
>> they
>>
>> didn't like the .nbattrs files. But I think the plain text file's
>> encoding
>> is a very important issue which should not be forgotten or ignored. In
>> fact,
>> we have to keep a certain config files to record the java files encoding.
>>
>> Why don't we utilize this machanism to other text files? About java
>> files, I
>> found a problem, too. The informations of the encoding of java files are
>> recorded in the files lying in the user directory where the user
>> concerned
>>
>> infomations should be saved. When the java files are exportd to other
>> users
>> (throught CVS or not), they will know nothing about encoding of these
>> files
>> since the user directory should not be exported. I work under the
>>
>> environment of simple chinese windows OS where every chinese hierogryph
>> occupies two ansii-character width positions.
>>
>> Another little problem is: every non-ansii character (such as russian
>> one)
>> which should be displayed occupying one byte width per character now
>> occupy
>>
>> two bytes width in the java file which is set encoding to UTF-8. on the
>> contrary, they are displayed normally when the parameter -
>> J-Dfile.encoding=UTF-8 is set. One ansi charactor consume one byte in
>> UTF-8
>> encoding. That means NB (or java?) systems don't treat international
>> display
>>
>> problems carefully.
>>
>> That's the problem. I have to give up NB sometimes for this reason. I
>> found
>> someone had submit this as a bug long before but no NB developer thought
>> that was big problem and the shortcoming still exists in the edition
>>
>> 5.5 beta2. Even if  I can develop my own NB plug-in to resolve the
>> problem, that will not be a complete solution. And the problem will
>> block NB to be
>> used more widely.
>>
>> ref: http://www.netbeans.org/issues/show_bug.cgi?id=32028
>>       http://www.netbeans.org/issues/show_bug.cgi?id=42638
>>

bluesun | 1 Aug 06:23
Picon
Favicon

Re: any news for Enterprise pack beta 2 ?

No info as of yet that I know of. Maybe by next week we will have it?

Legolas Woodland <legolas.w <at> gmail.com> wrote:

hi
netbeans 5 beta 2 is out , but where i can get enterprise pack beta 2 ?

Thanks

Jiri Kovalsky | 1 Aug 09:29
Picon

Re: UML

If you just need to generate some dependency diagram like the one attached, I suggest you download
RefactorIT (http://www.refactorit.com/?id=5327) NetBeans module and use "RefactorIT|Draw
Dependencies" from main menu.

Hope this helps,
-Jirka

Joel wrote:

> At 01:23 PM 7/31/2006, Joel wrote:
> 
> Do I remember correctly that I’ve read some emails in the past
> about automatic UML generation in Netbeans? If so, how do I learn
> more about it?
> 
> Regards,
> Joel
dhidik | 1 Aug 09:31
Picon

insert javascript

hi all,
how insert sricpt of my javascript coding in java creator or in my jsp ?
i have much problem, please some info......

thanks

Maros Sandor | 1 Aug 10:13
Picon

Re: Svn Plugin with NetBeans 5.5 Beta 2

It seems to me you are trying to commit something from your 'build' 
directory, which is probably not what you want. But generally, this 
message says that the directory is probably not an svn checkout and svn 
cannot work with it for some reason.

Regards,

Maros

Marc Farrow wrote:
> 
> I keep getting the below message when I try to do a commit in NetBeans.  
> This happens after I have made some significant changes to my source 
> code.  When it happens, I have to delete the repository and recreate it 
> and then import the project back into the new repository.  Anyone else 
> seen this?
>  
> 
> -- 
> Marc Farrow
> 
> ------------------------------------------------------------------------
> 

Jiri Rechtacek | 1 Aug 11:10
Picon

Re: Dev update center not working

Thomas Kellerer wrote:
> Hello,
> 
> when I try to connect to the Development update center, I get an error 
> message. The log file shows the following entry, which seems to indicate 
> an incorrect xml file on the server:

This is a reported jdkbug, see the attached issue: 
http://www.netbeans.org/issues/show_bug.cgi?id=81043

-jiri

> 
> Regards
> Thomas
> 
> 
> INFORMATIONAL *********** Exception occurred ************ at 10:26 AM on 
> Jul 29, 2006
> Annotation: URL: 
> http://www.netbeans.org/updates/55_1.19_.xml?unique=1389431201
> org.xml.sax.SAXParseException: Attribute name "{1}" associated with an 
> element type "line" must be followed by the ' = ' character.
>     at 
>
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195) 
> 
>     at 
>
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174) 
> 
>     at 
>
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388) 
> 
>     at 
> com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1404) 
> 
>     at 
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(XMLDocumentFragmentScannerImpl.java:1520) 
> 
>     at 
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1314) 
> 
>     at 
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2741) 
> 
>     at 
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645) 
> 
>     at 
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508) 
> 
>     at 
>
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) 
> 
>     at 
>
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) 
> 
>     at 
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) 
> 
>     at 
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225) 
> 
>     at 
>
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283) 
> 
>     at org.netbeans.updater.XMLUtil.parse(XMLUtil.java:79)
>     at 
> org.netbeans.modules.autoupdate.XMLUpdates.parseDocumentImpl(XMLUpdates.java:404) 
> 
> [catch] at 
> org.netbeans.modules.autoupdate.XMLUpdates.parseDocument(XMLUpdates.java:355) 
> 
>     at 
> org.netbeans.modules.autoupdate.XMLUpdates.access$500(XMLUpdates.java:48)
>     at 
> org.netbeans.modules.autoupdate.XMLUpdates$2.run(XMLUpdates.java:208)
>     at 
> org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
>     at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
> 


Gmane