Re: nested:image, image src, nested:write
On Wed, 2002-06-26 at 03:11, Barbara Post wrote: Well, this scriplet does not work, it throws an error (com.sun.tools.javac.Main deprecated), because the name attribute is not set. So here we go : what is the name of the current bean using nested tags ? ahem. nested:root %-- here the right image, use scriptlet since one cannot do else --% nested:define property=nodePix name= id=imgUrl/ nested:image src=%=imgURL%/ name attibute?... take out the name=. Nested tags set this internally, which leads me to believe that the tags are having a hard time getting a hold of the bean name from the root tag. What's the root tag look like?... (the empty root tag in this snippet is used for nesting through includes, need to figure out the bean which the tags of the other JSP is using). Remove these tags, does it all work fine?... Another thing you could try is to put a property property into the image tag. You'll need this to match up the clicks coming out of the list. If you don't need the property property, use the original html:image in its place. Arron. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
nested:image, image src, nested:write
Hello, I have a bean whose properties are used in a series of nested: ... / tag. I also want to have an image whose source is defined by the same bean I am using properties of. I am doing something wrong (get the nesting level...?). I started from keyboardmonkey example so follow its structure : in a first jsp, defining a BuildMenu bean which will create BuildMenuBean beans : !-- here nesting will build menu -- nested:root nested:nest property=buildMenu jsp:include page=buildmenu.jsp / /nested:nest /nested:root jsp:include page=footer.jsp flush=true/ in my recursive buildmenu.jsp, speaking of BuildMenuBean bean (getting its values) : nested:equal property=showChildren value=true !-- here the right image -- nested:image src=nested:write property=nodePix/ / !-- miss some formatting depending on level-- nested:write property=nodeValue/br !-- iterate -- nested:iterate property=childCollection jsp:include page=buildmenu.jsp / /nested:iterate /nested:equal but attribute nodePix has no value when I compile. Thanks for the right tag :-) It is a property of BuildMenuBean, not BuildMenu. I am just starting my menu building so would be sure everything is OK in the jsp too. Thanks a lot. Babs -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: nested:image, image src, nested:write
!-- here nesting will build menu -- nested:root nested:nest property=buildMenu jsp:include page=buildmenu.jsp / /nested:nest /nested:root jsp:include page=footer.jsp flush=true/ m... recursive nesting through includes, cutting edge :) nested:equal property=showChildren value=true !-- here the right image -- nested:image src=nested:write property=nodePix/ / !-- miss some formatting depending on level-- nested:write property=nodeValue/br !-- iterate -- nested:iterate property=childCollection jsp:include page=buildmenu.jsp / /nested:iterate /nested:equal The embedding of the nested:write tag inside the nested:image tag is illegal, because it's bad XML, which means the JSP page will have issues with it. Closest you'll get to doing exactly this is... nested:define property=nodePix id=imgUrl / nested:image src=%= imgURL% property=myImageProperty / The smallest of snippets to get the value out and into the tag, but any programmer who has issues with it is simply not the pragmatic variety :) Enjoy. Arron. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: nested:image, image src, nested:write
Thanks Arron, I was wondering about scriptlet but you're right a programmer has to be flexible in mind and pragmatic indeed ;-) Well, maybe the img / image tag could be enhanced LOL. Just kidding. Babs - Original Message - The embedding of the nested:write tag inside the nested:image tag is illegal, because it's bad XML, which means the JSP page will have issues with it. Closest you'll get to doing exactly this is... nested:define property=nodePix id=imgUrl / nested:image src=%= imgURL% property=myImageProperty / The smallest of snippets to get the value out and into the tag, but any programmer who has issues with it is simply not the pragmatic variety :) Enjoy. Arron. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: nested:image, image src, nested:write
Well, this scriplet does not work, it throws an error (com.sun.tools.javac.Main deprecated), because the name attribute is not set. So here we go : what is the name of the current bean using nested tags ? ahem. nested:root %-- here the right image, use scriptlet since one cannot do else --% nested:define property=nodePix name= id=imgUrl/ nested:image src=%=imgURL%/ ... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]