Re: Custom tag in Struts 1.3.8

2011-08-11 Thread Maurizio Cucchiara
I'm not sure if it helps, maybe you will be luckier looking at http://struts.apache.org/1.x/struts-taglib/tlddoc/html/xhtml.html -- Maurizio Cucchiara On 11 August 2011 19:31, Dave Newton wrote: > wrong version of struts. > On Aug 11, 2011 1:23 PM, "Christian Grobmeier" wrote: >> Hi, >> >> I d

Re: Custom tag in Struts 1.3.8

2011-08-11 Thread Christian Grobmeier
oh :-)) I am sorry On Thu, Aug 11, 2011 at 7:31 PM, Dave Newton wrote: > wrong version of struts. > On Aug 11, 2011 1:23 PM, "Christian Grobmeier" wrote: >> Hi, >> >> I do not know a text tag in struts: >> http://struts.apache.org/2.2.3/docs/ui-tag-reference.html >> >> And the texfield tags rend

Re: Custom tag in Struts 1.3.8

2011-08-11 Thread Dave Newton
wrong version of struts. On Aug 11, 2011 1:23 PM, "Christian Grobmeier" wrote: > Hi, > > I do not know a text tag in struts: > http://struts.apache.org/2.2.3/docs/ui-tag-reference.html > > And the texfield tags renders correct with closing /> (at least in my app) > > Might it be related to the tag

Re: Custom tag in Struts 1.3.8

2011-08-11 Thread Christian Grobmeier
Hi, I do not know a text tag in struts: http://struts.apache.org/2.2.3/docs/ui-tag-reference.html And the texfield tags renders correct with closing /> (at least in my app) Might it be related to the tag itself? What doctype do you use? Cheers On Thu, Aug 11, 2011 at 7:18 PM, Anjib Mulepati w

Re: custom tag development?

2009-07-24 Thread Musachy Barroso
you can still use the struts tags and/or jstl in the component. musachy On Fri, Jul 24, 2009 at 7:20 AM, Mitch Claborn wrote: > That's close to what I need, but not quite there. > > custom5[ >  this is stuff in the middle > ] > > > t1.jsp: > <%@ taglib prefix="s" uri="/struts-tags" %> > this is t

Re: custom tag development?

2009-07-24 Thread Mitch Claborn
That's close to what I need, but not quite there. custom5[ this is stuff in the middle ] t1.jsp: <%@ taglib prefix="s" uri="/struts-tags" %> this is t1.jsp. done renders as custom5[ this is stuff in the middle this is t1.jsp. done ] I need to be able to conditionally and repetitively ren

Re: custom tag development?

2009-07-23 Thread Musachy Barroso
Look at the "component" tag, you might be able to create a tag without writing any code. musachy On Thu, Jul 23, 2009 at 3:50 PM, Mitch Claborn wrote: > Hoping someone can give me some pointers on how to get started on > developing my own tag. > > I want to develop a custom tag to use within Stru

Re: Custom tag attribute as struts property?

2009-02-16 Thread ryangr
newton.dave wrote: > > ryangr wrote: >> I have a custom tag declared in my view as such: >> " showNoneOption="true" /> >> >> The problem is it then throws an exception with the message "Unterminated >> > >> Obviously there's a problem with the tag thinking it is be

Re: Custom tag attribute as struts property?

2009-02-16 Thread Dave Newton
ryangr wrote: I have a custom tag declared in my view as such: " showNoneOption="true" /> The problem is it then throws an exception with the message "Unterminated

Re: Custom Tag Libs

2008-10-08 Thread David C. Hicks
Thanks for the feedback, guys. I actually asked this question for a fellow developer. He's more of a JSP "guru", if you will, but Struts2 seems to handle taglibs differently. So, it was a bit confusing to us all. I think he's found some kind of solution, but I will definitely forward these

Re: Custom Tag Libs

2008-10-08 Thread Alberto A. Flores
I disagree about the difficulty level of writing your tag in Struts2. However, I would strongly encourage you (as others have) to see if an already existing tag doesn't fit your needs. I'm hoping to post something in my blog about some of this soon, however it would be worthwhile to state what you

Re: Custom Tag Libs

2008-10-08 Thread stanlick
David -- I would strongly discourage you from writing your own custom tags until you discover there is not already one "in the box!" Besides Struts 2, you still have all the JSTL tags available as well. If by "old school" you mean you haven't looked around the available tags today, your best be

Re: Custom Tag Libs

2008-10-08 Thread Dave Newton
--- On Wed, 10/8/08, David C. Hicks wrote: > Can anyone point me to a source of information about how to > build a custom tag lib for Struts2? Maybe it's a plugin? > I'm a little old school and still learning. Depends on what you mean, I guess--you can create a standard JEE custom tag using eit

Re: Custom tag and map-backed action

2008-09-24 Thread stanlick
Like you, I was under the impression that generics were erased and you were out of luck at runtime! After the type conversion burn at the top of this thread, I started to dig in and found this article. I have experimented with it and it works great. As it turns out, this is probably about all an

Re: Custom tag and map-backed action

2008-09-24 Thread Laurie Harper
I stand corrected -- and thanks for the link; I've never seen this documented before. Very interesting... L. [EMAIL PROTECTED] wrote: http://www.google.com/gwt/n?eosr=on&q=Reflection+generics+Java+&source=m&hl=en&ei=ZWfZSODxI5nYqAKR1t53&sa=X&oi=blended&ct=res&cd=4&rd=1&u=http%3A%2F%2Ftutorials

Re: Custom tag and map-backed action

2008-09-23 Thread stanlick
http://www.google.com/gwt/n?eosr=on&q=Reflection+generics+Java+&source=m&hl=en&ei=ZWfZSODxI5nYqAKR1t53&sa=X&oi=blended&ct=res&cd=4&rd=1&u=http%3A%2F%2Ftutorials.jenkov.com%2Fjava-reflection%2Fgenerics.html On 9/23/08, Laurie Harper <[EMAIL PROTECTED]> wrote: > Sounds reasonable until you remember

Re: Custom tag and map-backed action

2008-09-23 Thread Laurie Harper
Sounds reasonable until you remember two words: type erasure. There is no way to 'glean the generic type' of a collection at runtime. L. Gabriel Belingueres wrote: I agree too. 2008/9/23 stanlick <[EMAIL PROTECTED]>: I agree totally! If the TypeDeterminer had called getEmployees() *and* ha

Re: Custom tag and map-backed action

2008-09-23 Thread Gabriel Belingueres
I agree too. 2008/9/23 stanlick <[EMAIL PROTECTED]>: > > I agree totally! If the TypeDeterminer had called getEmployees() clearly did for iterator> *and* had bothered to glean the generic type of > the key, it would have recognized the action expected the key to of type > String. If the data ty

Re: Custom tag and map-backed action

2008-09-23 Thread stanlick
I agree totally! If the TypeDeterminer had called getEmployees() *and* had bothered to glean the generic type of the key, it would have recognized the action expected the key to of type String. If the data type is specifically spelled out and the framework decides a type diametrically opposed,

Re: Custom tag and map-backed action

2008-09-23 Thread Gabriel Belingueres
AFAIK, OGNL does not have any support for generics, but even if it would support it, I would prefer that it wont be too smart, for example in: I prefer that abc be treated as an action property and call method getAbc() than coerce it to the string 'abc'. 2008/9/23 <[EMAIL PROTECTED]>: > Those

Re: Custom tag and map-backed action

2008-09-23 Thread stanlick
Those are all good points, but when my collection was expressly declared to be a Map I would sort of expect the key to be a String! When the framework "guesses" for a different type (feature?) and your application fails; all the discussion about valid number systems is sort of meaningless. Scott

Re: Custom tag and map-backed action

2008-09-22 Thread Gabriel Belingueres
I don't know but I hope not, since I don't want my expressions to reduce to different data types depending if there is a number or not in them! Even if abc would reduce to the string 'abc', the expression 0xabc reduce to an Integer (have tested it), since it is an hexadecimal number. 2008/9/22 <[

Re: Custom tag and map-backed action

2008-09-22 Thread stanlick
I expected the conversion facility or iterator key to be smart enough to recognize my Map and setup the internal key variable accordingly. Do you suppose it would have worked if my Map had contained 'abc':emp1, 'def':emp2, 'ghi':emp3? Peace, Scott On Mon, Sep 22, 2008 at 3:47 PM, Gabriel Belingu

Re: Custom tag and map-backed action

2008-09-22 Thread Gabriel Belingueres
Interesting. Seems it is a feature, as documented in [1]. Tested it myself: The last one (Integer) didn't work without the ( ), which I don't know if this is a necessity or a bug. What about Short and Byte data type? it doesn't say... However, I think is NOT a bug that employees[1234F].id

RE: Custom Tag lib passing c:out tags

2007-10-01 Thread Jennie Moeller
FYI I found a solution if anyone else has this issue: In the custom tag lib where you set your Parameter you need to include this code: try { parameter = (String) ExpressionUtil.evalNotNull("encodechars", "parameter", value, String.class, this, pageContext); } catch (Exception

RE: custom tag for localization

2006-11-17 Thread Lance Semmens
Not exactly what you asked for but LocaleAction can set the locale then redirect to a page. http://struts.apache.org/1.x/struts-extras/apidocs/ -Original Message- From: Mahmoud Saeed(RSW) [mailto:[EMAIL PROTECTED] Sent: 14 November 2006 23:30 To: user@struts.apache.org Subject: custom t

Re: custom tag and html:rewrite

2006-09-25 Thread Van Stalle
Martin, I found the solution myself; here is the code: this gives me an url which is valid in the context of my application. Thanks for your response, Jan import org.apache.struts.taglib.TagUtils; ... TagUtils utils = TagUtils.getInstance(); String img = null; try {

Re: custom tag and html:rewrite

2006-09-25 Thread Martin Gainty
Hello Jan- I found this page to be quite helpful when manipulating image attributes http://jakarta.apache.org/taglibs/sandbox/doc/image-doc/index.html#image Here is the javadoc for the doStartTag http://jakarta.apache.org/taglibs/sandbox/doc/image-doc/javadoc/index.html M- ***

Re: custom tag as attribute value

2006-07-18 Thread Laurie Harper
Jean-Marie Pitre wrote: Hi, I am not sure is the right forum ... I am working with struts and displaytag library. You might want to try the displaytag forums/mailing lists too. I want to display a table with a title value provided by a custom tag: . Have you got an idea to do this? my

Re: Custom tag

2006-05-29 Thread Angelo zerr
Hello, you could use FormView for manage your state (readonly, ...) for your input. With new version of formview you can too manage label to set RED color when input has ERROR. You can find FormView Web Site at http://formview.sourceforge.net/ and download JAR at http://sourceforge.net/projects/f

RE : RE : Custom tag info

2006-05-29 Thread Jean-Marie Pitre
EMAIL PROTECTED] Envoyé : lundi 29 mai 2006 17:10 À : Struts Users Mailing List Objet : RE : Custom tag info Ok, But I think I have forgotten something, because even if I put el_expression to the attribute value, at Runtime the container map the el_expression as a string and so it is not p

RE : Custom tag info

2006-05-29 Thread Jean-Marie Pitre
2006 14:46 À : Struts Users Mailing List Objet : RE: Custom tag info You can't put the value of a custom-tag another cutom-tag! You should use scriptlet or el-expressions or somthing else! -Original Message- From: Jean-Marie Pitre [mailto:[EMAIL PROTECTED] Sent: maandag 29 mei

Re: Custom tag

2006-05-29 Thread [EMAIL PROTECTED]
If I understand what it is you are trying to do. I think you want to write out an input field with the name,value and a display property. What I normally do for simplicity sake is to create an object to represent a field and it's properties. In the action class I populate a collection with these ob

RE: Custom tag info

2006-05-29 Thread Emilia Ipate
You can't put the value of a custom-tag another cutom-tag! You should use scriptlet or el-expressions or somthing else! -Original Message- From: Jean-Marie Pitre [mailto:[EMAIL PROTECTED] Sent: maandag 29 mei 2006 14:36 To: user@struts.apache.org Subject: Custom tag info Hi, I ha

Re: Custom tag question

2006-04-11 Thread [EMAIL PROTECTED]
The first thing this makes me think of is why don't you just use an iterate tag over the bean tag. Can you say more about what you are trying to accomplish? Bryan LaPlante -- Original Message --- From: Aladin Alaily <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Mon, 10

Re: Custom tag question

2006-04-10 Thread Aladin Alaily
... with tag files ... Aladin Alaily wrote: Hi Dave, I'm also wary of doing such a thing (hence why I'm posting here) because I would essentially be mimicking the servlet container's job. Now if it's possible to do what I'm trying to with files then I'll give that a shot instead. Thanks.

Re: Custom tag question

2006-04-10 Thread Aladin Alaily
Hi Dave, I'm also wary of doing such a thing (hence why I'm posting here) because I would essentially be mimicking the servlet container's job. Now if it's possible to do what I'm trying to with files then I'll give that a shot instead. Thanks. Aladin Dave Newton wrote: Aladin Alaily wr

Re: Custom tag question

2006-04-10 Thread Dave Newton
Aladin Alaily wrote: > Would you use a .tag to produce the effect described above? If you mean a JSP 2.0 custom tag written in JSP, then sure. I'd also be wary of using other custom tags inside a tag like that, although I guess I've never tried it. Dave