|
View:
New views
19 Messages
—
Rating Filter:
Alert me
|
|
|
MyFaces Tree2 ComponentHi team
I am planning to recommend JSF and MyFaces for the development of the application. like Navigation Tree on the left side, header, footer and body .. 1) Can any one share a piece of code to develop Dynamic Navigation Tree(like ServerSideToggling ..I will get the data from backend based on the I will build the Tree with leafs, when we click on leafs we need to call action to redirect to other jsps ) we can achieve this using MyFaces Tree2 Component,Just wondering if anybody know some information, any info is appreciated. thanks Jack |
|
|
RE: MyFaces Tree2 ComponentHi Jack,
Even I need to develop a tree strtucture with checkboxes to each node. Trinad examples are appearing very gr8 for These features. But I'm unable to customise these fetures. Do you have any specific ideas on Triniad? Thanks Krishna -----Original Message----- From: spaduri [mailto:javadevreddi@...] Sent: Friday, April 18, 2008 3:06 PM To: users@... Subject: MyFaces Tree2 Component Hi team I am planning to recommend JSF and MyFaces for the development of the application. like Navigation Tree on the left side, header, footer and body .. 1) Can any one share a piece of code to develop Dynamic Navigation Tree(like ServerSideToggling ..I will get the data from backend based on the I will build the Tree with leafs, when we click on leafs we need to call action to redirect to other jsps ) we can achieve this using MyFaces Tree2 Component,Just wondering if anybody know some information, any info is appreciated. thanks Jack -- View this message in context: http://www.nabble.com/MyFaces-Tree2-Component-tp16764781p16764781.html Sent from the MyFaces - Users mailing list archive at Nabble.com. |
|
|
RE: MyFaces Tree2 ComponentHi Krishna
Tomahawk, trinidad are alomost similar implementations I guess, just wondering what kind of customization you are working on the Tree... Can you explain the issue ..? thanks Suresh Thanks
|
|
|
Re: MyFaces Tree2 ComponentPersonally I regret tomahawk can't be used without myfaces (dependencies on `_shared` jars).
2008/4/21, spaduri <javadevreddi@...>:
|
|
|
Re: MyFaces Tree2 ComponentThis isn't correct; Tomahawk can be used with any JSF implementation, eg
Sun's. In very old Tomahawk versions, you needed to add a "shared" jar if you weren't using myfaces but that was removed long ago. Regards, Simon Grzesiek schrieb: > Personally I regret tomahawk can't be used without myfaces > (dependencies on `_shared` jars). |
|
|
Re: MyFaces Tree2 ComponentYes, that is what should be. But in my case JSF Mojarra + Tomahawk causes a lot of problems, eg :
1. First (but it doesn't matter): 2008-04-21 13:22:02 org.apache.commons.digester.Digester error SEVERE: Parse Error at line 5 column 14: Document root element "faces-config", must match DOCTYPE root "null". org.xml.sax.SAXParseException: Document root element "faces-config", must match DOCTYPE root "null". when faces-config.xml is successfully validated and in 100% is good. 2. My real problem is this exception: 2008-04-21 13:29:52 org.apache.myfaces.webapp.filter.ExtensionsFilter doFilter SEVERE: Exception wile retrieving addResource javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.myfaces.shared_tomahawk.config.MyfacesConfig(but the same project + MyFaces + Tomahawk works perfect). This exception takes place when I try to add `Tomahawk-1.6.jar` to my projet with jsf-api.jar and jsf-impl.jar from SUN JSF. I need Tomahawk for e.g files upload. Regards 2008/4/21, simon.kitching@... <simon.kitching@...>: This isn't correct; Tomahawk can be used with any JSF implementation, eg |
|
|
Re: MyFaces Tree2 ComponentWe should really use a different thread for this issue. However...
Item (1) just looks like a plain old bug in tomahawk. Could you please post the first few lines of your faces-config.xml file? I don't know why (2) is happening for you... sk@*****:~/.m2/repository/org/apache/myfaces/tomahawk/tomahawk/1.1.6> jar tf tomahawk-1.1.6.jar| grep MyfacesConfig org/apache/myfaces/shared_tomahawk/config/MyfacesConfig.class So the MyfacesConfig class is present in the tomahawk 1.1.6 jarfile. The problem must therefore be that some class it depends on cannot be found (NoClassDefFound errors are a pain to track down, due to insufficient info from Sun's JVM). Is there anything more useful in the stacktrace? Just FYI, Tomahawk 1.1.7-SNAPSHOT definitely can be run on Sun's RI. If you (1) check out the tomahawk examples: http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/examples (2) add the apache snapshot repo to your ~/.m2/settings.xml file (3) type cd examples/simple mvn -Djsf=ri12 jetty:run then the examples will start up using the sun RI, and can be accessed via http://localhost:8080 I'm not aware of any reason why 1.1.6 would not also run (though the latest examples code needs 1.1.7) Regards, Simon Grzesiek schrieb: > Yes, that is what should be. But in my case JSF Mojarra + Tomahawk > causes a lot of problems, eg : > > 1. First (but it doesn't matter): > 2008-04-21 13:22:02 org.apache.commons.digester.Digester error > SEVERE: Parse Error at line 5 column 14: Document root element > "faces-config", must match DOCTYPE root "null". > org.xml.sax.SAXParseException: Document root element "faces-config", > must match DOCTYPE root "null". > > when faces-config.xml is successfully validated and in 100% is good. > > 2. My real problem is this exception: > > 2008-04-21 13:29:52 org.apache.myfaces.webapp.filter.ExtensionsFilter > doFilter > SEVERE: Exception wile retrieving addResource > javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.myfaces.shared_tomahawk.config.MyfacesConfig > (but the same project + MyFaces + Tomahawk works perfect). This > exception takes place when I try to add `Tomahawk-1.6.jar` to my > projet with jsf-api.jar and jsf-impl.jar from SUN JSF. > I need Tomahawk for e.g files upload. > > Regards > > 2008/4/21, simon.kitching@... <mailto:simon.kitching@...> > <simon.kitching@... <mailto:simon.kitching@...>>: > > This isn't correct; Tomahawk can be used with any JSF > implementation, eg > Sun's. > > In very old Tomahawk versions, you needed to add a "shared" jar if you > weren't using myfaces but that was removed long ago. > > Regards, > Simon > > Grzesiek schrieb: > > > Personally I regret tomahawk can't be used without myfaces > > (dependencies on `_shared` jars). > > |
|
|
Re: MyFaces Tree2 ComponentHi there....
I am planning to recommend JSF and MyFaces for the development of the application. like Navigation Tree on the left side, header, footer and body .. 1) Can any one share a piece of code or share any Ideas to develop Dynamic Navigation Tree(like ServerSideToggling ..I will get the data from backend based on the I will build the Tree with leafs, when we click on leafs we need to call action to redirect to other jsps ) we can achieve this using MyFaces Tree2 Component,Just wondering if anybody know some information, any info is appreciated. Thanks Jack
|
|
|
Re: MyFaces Tree2 Componentfirst of all, thanks for you help...
<?xml version='1.0' encoding='UTF-8'?> <!-- =========== FULL CONFIGURATION FILE ================================== --> <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee" ..... It still gives an error : SEVERE: Parse Error at line 2 column 14: Document root element "faces-config", must match DOCTYPE root "null". org.xml.sax.SAXParseException: Document root element "faces-config", must match DOCTYPE root "null". (2) > So the MyfacesConfig class is present in the tomahawk 1.1.6 jarfile. Yes, I also checked this and 'org.apache.myfaces.shared_tomahawk.config.MyfacesConfig' class is where it should be. So this is strange.... following exception: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.myfaces.shared_tomahawk.config.MyfacesConfig is caused by this line In my web.xml : <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class> I consider that it would be a bug somewhere, but never mind. At least i'll have to change my JSF implementation, because with myfaces it works. Anyway if you don't know how to solve this exception, i don't want waste your time.... regards 2008/4/21, simon.kitching@... <simon.kitching@...>: We should really use a different thread for this issue. However... |
|
|
RE: MyFaces Tree2 ComponentHi Suresh, The issues I have are as follows. I need to develop 2 screens. 1)ItemHome:- In this jsf page, I need to have data table with 6 columns. One among these Columns need to have tree structure with check boxes. The depth of the tree is 2 levels. Each node of the tree should contain an item as parent and 2 sub Items as children with checkboxes. User will select one among these items (parent item) and clicks edit Item Tab. (Problem I have here is how to provide tree structure in the table with checkboxes) 2)EditItem:- Here a data table is displayed with a selected master item, and its subItems(at most three),with radio buttons. User will select one among these radiobuttons, and should able see the selected object in the top panel in editable format. User should able to edit the item/sub Item and save it in the database. Here the problem I have is displaying the objects in data table with radio buttons, and allow the user to select one among many radio buttons. How can I capture the event of selected radio button in the backing bean, and identify the object. (I could not able to find the solution). As I'm reaching deadlines, any of your help in these issues is highly appreciated. I also attached the screens here, though I'm not sure whether you can receive them as attachment. Thanks Krishna A)From Gui I should -----Original Message----- From: spaduri [mailto:javadevreddi@...] Sent: Sunday, April 20, 2008 11:07 PM To: users@... Subject: RE: MyFaces Tree2 Component Hi Krishna Tomahawk, trinidad are alomost similar implementations I guess, just wondering what kind of customization you are working on the Tree... Can you explain the issue ..? thanks Suresh Thanks Nutulapati, Krishna wrote: > > Hi Jack, > Even I need to develop a tree strtucture with checkboxes to each node. > Trinad examples are appearing very gr8 for These features. But I'm > unable to customise these fetures. Do you have any specific ideas on > Triniad? > Thanks > Krishna > > -----Original Message----- > From: spaduri [mailto:javadevreddi@...] > Sent: Friday, April 18, 2008 3:06 PM > To: users@... > Subject: MyFaces Tree2 Component > > > Hi team > > I am planning to recommend JSF and MyFaces for the development of the > application. > like Navigation Tree on the left side, header, footer and body .. > > 1) Can any one share a piece of code to develop Dynamic Navigation > Tree(like ServerSideToggling ..I will get the data from backend based > on the I will build the Tree with leafs, when we click on leafs we > need to call action to redirect to other jsps ) we can achieve this > using MyFaces Tree2 Component,Just wondering if anybody know some > information, any info is appreciated. > > thanks > Jack > -- > View this message in context: > http://www.nabble.com/MyFaces-Tree2-Component-tp16764781p16764781.html > Sent from the MyFaces - Users mailing list archive at Nabble.com. > > > View this message in context: http://www.nabble.com/MyFaces-Tree2-Component-tp16764781p16802454.html Sent from the MyFaces - Users mailing list archive at Nabble.com. |
|
|
RE: MyFaces Tree2 ComponentHi Jack,
I can tell you this about Tree2, it doesn't handle dynamic data changes very well. I'm using it on a project now for a similar type of project and I've had to do a lot of extra work to get it to do what I want. Specifically with the tree state, I've also more or less rewritten the renderer. But if you don't mind having a ton of HTML tables generated then you can keep that one. I would start here for more info http://wiki.apache.org/myfaces/Tree2. I'm also using AJAX4JSF with this. I had originally started with William's example: http://www.jroller.com/plainoldweblog/entry/use_tomahawk_tree2_and_ajax4jsf and built on top of that. Matt -----Message d'origine----- De : spaduri [mailto:javadevreddi@...] Envoyé : lundi 21 avril 2008 17:48 À : users@... Objet : Re: MyFaces Tree2 Component Hi there.... I am planning to recommend JSF and MyFaces for the development of the application. like Navigation Tree on the left side, header, footer and body .. 1) Can any one share a piece of code or share any Ideas to develop Dynamic Navigation Tree(like ServerSideToggling ..I will get the data from backend based on the I will build the Tree with leafs, when we click on leafs we need to call action to redirect to other jsps ) we can achieve this using MyFaces Tree2 Component,Just wondering if anybody know some information, any info is appreciated. Thanks Jack simon.kitching@... wrote: > > This isn't correct; Tomahawk can be used with any JSF implementation, eg > Sun's. > > In very old Tomahawk versions, you needed to add a "shared" jar if you > weren't using myfaces but that was removed long ago. > > Regards, > Simon > > Grzesiek schrieb: >> Personally I regret tomahawk can't be used without myfaces >> (dependencies on `_shared` jars). > > > -- View this message in context: http://www.nabble.com/MyFaces-Tree2-Component-tp16764781p16808008.html Sent from the MyFaces - Users mailing list archive at Nabble.com. |
|
|
RE: MyFaces Tree2 ComponentHi Krishna
Have you finished your stuff..? Let me know... I think we can do this... If you want pointers let me know I can give some suggestions. Suresh
|
|
|
RE: MyFaces Tree2 ComponentHi Suresh, I could not able to move forward. I'm really looking for your help. As you suggested, I also emailed to you gmail account.Your help would be extremely appreciated. Please give me your phone number if you can, so that I will call you. I'm in a sort of critical situation, where I'm desperately looking for help. Thanks Krishna -----Original Message----- From: spaduri [mailto:javadevreddi@...] Sent: Wednesday, April 23, 2008 5:28 PM To: users@... Subject: RE: MyFaces Tree2 Component Hi Krishna Have you finished your stuff..? Let me know... I think we can do this... If you want pointers let me know I can give some suggestions. Suresh Nutulapati, Krishna wrote: > > > Hi Suresh, > The issues I have are as follows. > I need to develop 2 screens. > 1)ItemHome:- In this jsf page, I need to have data table with 6 > columns. One among these Columns need to have tree structure with > check boxes. The depth of the tree is 2 levels. > Each node of the tree should contain an item as parent and 2 sub > Items as children with checkboxes. User will select one among these > items (parent item) and clicks edit Item Tab. > (Problem I have here is how to provide tree structure in the table > with > checkboxes) > > > 2)EditItem:- Here a data table is displayed with a selected master > and its subItems(at most three),with radio buttons. User will select > one among these radiobuttons, and should able see the selected object > in the top panel in editable format. User should able to edit the > item/sub Item and save it in the database. > > Here the problem I have is displaying the objects in data table with > radio buttons, and allow the user to select one among many radio > buttons. How can I capture the event of selected radio button in the > backing bean, and identify the object. (I could not able to find the > solution). > > As I'm reaching deadlines, any of your help in these issues is highly > appreciated. > I also attached the screens here, though I'm not sure whether you can > receive them as attachment. > > Thanks > Krishna > > A)From Gui I should > -----Original Message----- > From: spaduri [mailto:javadevreddi@...] > Sent: Sunday, April 20, 2008 11:07 PM > To: users@... > Subject: RE: MyFaces Tree2 Component > > > Hi Krishna > Tomahawk, trinidad are alomost similar implementations I guess, just > wondering what kind of customization you are working on the Tree... > Can you explain the issue ..? > > thanks > Suresh > > Thanks > > Nutulapati, Krishna wrote: >> >> Hi Jack, >> Even I need to develop a tree strtucture with checkboxes to each >> Trinad examples are appearing very gr8 for These features. But I'm >> unable to customise these fetures. Do you have any specific ideas on >> Triniad? >> Thanks >> Krishna >> >> -----Original Message----- >> From: spaduri [mailto:javadevreddi@...] >> Sent: Friday, April 18, 2008 3:06 PM >> To: users@... >> Subject: MyFaces Tree2 Component >> >> >> Hi team >> >> I am planning to recommend JSF and MyFaces for the development of the >> application. >> like Navigation Tree on the left side, header, footer and body .. >> >> 1) Can any one share a piece of code to develop Dynamic Navigation >> Tree(like ServerSideToggling ..I will get the data from backend based >> on the I will build the Tree with leafs, when we click on leafs we >> need to call action to redirect to other jsps ) we can achieve this >> using MyFaces Tree2 Component,Just wondering if anybody know some >> information, any info is appreciated. >> >> thanks >> Jack >> -- >> View this message in context: >> http://www.nabble.com/MyFaces-Tree2-Component-tp16764781p16764781.htm >> l Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> >> > > -- > View this message in context: > http://www.nabble.com/MyFaces-Tree2-Component-tp16764781p16802454.html > Sent from the MyFaces - Users mailing list archive at Nabble.com. > > > > > -- View this message in context: http://www.nabble.com/MyFaces-Tree2-Component-tp16764781p16834855.html Sent from the MyFaces - Users mailing list archive at Nabble.com. |
|
|
Re: MyFaces Tree2 ComponentKrishna, I strongly recommend starting a new email thread with
[Trinidad] in the subject. The fact that you replied to a Tomahawk Tree2 thread asking for Trinidad tree / treeTable help pretty much stops all the Trinidad developers and users from helping you. Most when they see [Tomahawk] and especially Tree2 in the subject will not bother to read the email. It is very important on a mailing list like this that all emails have accurate subjects and that all replies on a thread are on the same topic. If you wish to change the direction of a thread, don't reply, just send a new email (and don't reply and then change the subject and body, as threaded mail clients will still recognize the old thread). With a clear new email with [Trinidad] in the subject, hopefully someone will know how to help you out. Also targeting certain people with private emails is not recommended and many people are put off by this and may stop trying to help if you do so. Keeping relevant discussions to only the mailing list ensures proper etiquette and keeps other users in the loop that may be able to provide a different solution or view point. Best of luck, Andrew On Thu, Apr 24, 2008 at 8:08 AM, Nutulapati, Krishna <KNutulapati@...> wrote: > > Hi Suresh, > I could not able to move forward. I'm really looking for your help. As > you suggested, I also emailed to you gmail account.Your help would be > extremely appreciated. Please give me your phone number if you can, so > that I will call you. I'm in a sort of critical situation, where I'm > desperately looking for help. > > Thanks > Krishna > -----Original Message----- > From: spaduri [mailto:javadevreddi@...] > > > Sent: Wednesday, April 23, 2008 5:28 PM > To: users@... > Subject: RE: MyFaces Tree2 Component > > > Hi Krishna > > Have you finished your stuff..? > Let me know... I think we can do this... > If you want pointers let me know > > I can give some suggestions. > > > Suresh > > > > > Nutulapati, Krishna wrote: > > > > > > Hi Suresh, > > The issues I have are as follows. > > I need to develop 2 screens. > > 1)ItemHome:- In this jsf page, I need to have data table with 6 > > columns. One among these Columns need to have tree structure with > > check boxes. The depth of the tree is 2 levels. > > Each node of the tree should contain an item as parent and 2 sub > > Items as children with checkboxes. User will select one among these > > items (parent item) and clicks edit Item Tab. > > (Problem I have here is how to provide tree structure in the table > > with > > checkboxes) > > > > > > 2)EditItem:- Here a data table is displayed with a selected master > item, > > and its subItems(at most three),with radio buttons. User will select > > one among these radiobuttons, and should able see the selected object > > in the top panel in editable format. User should able to edit the > > item/sub Item and save it in the database. > > > > Here the problem I have is displaying the objects in data table with > > radio buttons, and allow the user to select one among many radio > > buttons. How can I capture the event of selected radio button in the > > backing bean, and identify the object. (I could not able to find the > > solution). > > > > As I'm reaching deadlines, any of your help in these issues is highly > > appreciated. > > I also attached the screens here, though I'm not sure whether you can > > receive them as attachment. > > > > Thanks > > Krishna > > > > A)From Gui I should > > -----Original Message----- > > From: spaduri [mailto:javadevreddi@...] > > Sent: Sunday, April 20, 2008 11:07 PM > > To: users@... > > Subject: RE: MyFaces Tree2 Component > > > > > > Hi Krishna > > Tomahawk, trinidad are alomost similar implementations I guess, just > > wondering what kind of customization you are working on the Tree... > > Can you explain the issue ..? > > > > thanks > > Suresh > > > > Thanks > > > > Nutulapati, Krishna wrote: > >> > >> Hi Jack, > >> Even I need to develop a tree strtucture with checkboxes to each > node. > >> Trinad examples are appearing very gr8 for These features. But I'm > >> unable to customise these fetures. Do you have any specific ideas on > > >> Triniad? > >> Thanks > >> Krishna > >> > >> -----Original Message----- > >> From: spaduri [mailto:javadevreddi@...] > >> Sent: Friday, April 18, 2008 3:06 PM > >> To: users@... > >> Subject: MyFaces Tree2 Component > >> > >> > >> Hi team > >> > >> I am planning to recommend JSF and MyFaces for the development of the > > >> application. > >> like Navigation Tree on the left side, header, footer and body .. > >> > >> 1) Can any one share a piece of code to develop Dynamic Navigation > >> Tree(like ServerSideToggling ..I will get the data from backend based > > >> on the I will build the Tree with leafs, when we click on leafs we > >> need to call action to redirect to other jsps ) we can achieve this > >> using MyFaces Tree2 Component,Just wondering if anybody know some > >> information, any info is appreciated. > >> > >> thanks > >> Jack > >> -- > >> View this message in context: > >> http://www.nabble.com/MyFaces-Tree2-Component-tp16764781p16764781.htm > >> l Sent from the MyFaces - Users mailing list archive at Nabble.com. > > > >> > >> > >> > > > > -- > > View this message in context: > > http://www.nabble.com/MyFaces-Tree2-Component-tp16764781p16802454.html > > Sent from the MyFaces - Users mailing list archive at Nabble.com. > > > > > > > > > > > > -- > View this message in context: > http://www.nabble.com/MyFaces-Tree2-Component-tp16764781p16834855.html > Sent from the MyFaces - Users mailing list archive at Nabble.com. > > |
|
|
Re: MyFaces Tree2 Component |