Re: Multiple Result in one Page

2008-04-06 Thread Frans Thamura
take a look of this http://farm3.static.flickr.com/2018/2394469980_a9984272d8.jpg?v=0 this is our current approach, a s2 action for form, and another action for value i use the ExtJS, and run well here :) thx to the ExtJs GUI Designer team but i am seeking another cool stuff that beter. Fran

Re: Ognl expressions in Struts 2.1

2008-04-06 Thread Márcio Gurgel
Sorry guys, my mistake. I don't know how, but the "theme" attribute of s:checkBox was "item", then I changed to "simple" (: Jeromy it works! The generated checkBox has value! Tanks for your help. Tanks also Wes! 2008/4/7, Márcio Gurgel <[EMAIL PROTECTED]>: > > Jeromy, > > I tried as you said, bu

Re: Ognl expressions in Struts 2.1

2008-04-06 Thread Márcio Gurgel
Jeromy, I tried as you said, but now I have the following exception: 01:02:36,640 WARN OgnlValueStack:46 - Could not find property [templateDir] 01:02:36,640 WARN OgnlValueStack:46 - Could not find property [templateDir] 01:02:36,640 WARN OgnlValueStack:46 - Could not find property [#attr.temp

Re: Ognl expressions in Struts 2.1

2008-04-06 Thread Jeromy Evans
In addition to Wes' comment, as you're using display:table and have used the uid attribute, the current row of the table is placed into the PageContext. You can access the page context in OGNL via #attr, so your expression becomes this: Wes Wannemacher wrote: Your problem isn't OGNL in p

Re: Ognl expressions in Struts 2.1

2008-04-06 Thread Márcio Gurgel
Hi all! Wes, tanks for your explanation, it was helpful. I tryed to use %{ - %{item.id} inside my display:table, but it still doesn't work. The iterated object is a bean, the attribute "cd" has a getCd() Folow the generated html: 2008/4/6, Wes Wannemacher <[EMAIL PROTECTED]>: > > You

Re: Multiple Result in one Page

2008-04-06 Thread Jeromy Evans
I'm not completely sure what you mean but two things come to mind: - the s:action tag is useful for pages that need to be assembled using the results from multiple actions. If each each outputs a component of the view, you can uses Tiles or Sitemesh to assemble a page on the server-side that i

Re: [OT] What do you code today?

2008-04-06 Thread Wes Wannemacher
I've been quiet on this one, but since I finally had a breakthrough today, I feel like talking about it :) I started a pet project that I've been toying around in my head for a while. As a parent, I coach a few elementary and junior high sports. It is a volunteer thing, and if offered pay, I would

Re: [OT] What do you code today?

2008-04-06 Thread Jeromy Evans
I've been working on a system for a law firm that allows them to quickly generate legal documents. Users complete a Q&A process and a PDF pops out at the end. The logic is more sophisticated than it sounds though. It's now evolved into a records management system and document management sys

Re: Ognl expressions in Struts 2.1

2008-04-06 Thread Wes Wannemacher
Your problem isn't OGNL in parameters, you are using EL in your examples. By default, EL expressions are disabled, but you could easily switch your expressions to OGNL. I'm guessing that if you use '%' instead of '$' it will probably work. If your action has a getItem(), and the returned object has

Ognl expressions in Struts 2.1

2008-04-06 Thread Márcio Gurgel
Hi all, I was using struts 2.0.9, then I resolved to upgrade to 2.1.0. I was setting a value in a checkbox like this: inside a displayTag iterator. I read this link https://issues.apache.org/struts/browse/WW-2107 and understood the situation. But, is there another way to set a value in my checkB

Re: Url-Parameters only set once

2008-04-06 Thread Marc Ende
Hello Dave, I've found a solution for that. The spring-action was standard-scoped and in cause of that it didn't accept the id parameter a second time. I think it's a little bit strange that it's impossible to set an property again when it's done before. Marc Dave Newton schrieb: --- M

Re: [OT] What do you code today?

2008-04-06 Thread Martin Gainty
Agreed! O/T I'm writing a small text-processor search utility and came across this interesting TestCase using StringTokenizer I want to see if I can use a delimiter only when that delimiter is embedded in the discovered string referencing the StringTokenizer JavaDoc from MIT http://tns-www.lcs.mit

Re: [S2] Menu Tag Library struts-config.xml problem.

2008-04-06 Thread sassien
oh, I thought it was talking about upgrading from struts 1.x to 2.x using struts-menu... All right then, I'll try to follow the "using struts menu outside of Struts" docmentation... thanks, sassien Laurie Harper wrote: > > That's talking about upgrading from 1.x to 2.x of Struts Menu isn't it?

Re: Url-Parameters only set once

2008-04-06 Thread Dave Newton
--- Marc Ende <[EMAIL PROTECTED]> wrote: > I've got a list with several items which are linked to a details-action. > If I klick on an item after the restart of the webapp a link like > http://.../details.action?id=123 > is called. Everything is fine. I can see the correct details site. > When I go

Multiple Result in one Page

2008-04-06 Thread Frans Thamura
hi all, I am try to develop a web apps using Struts2, and the presentation we use ExtJS. in ExtJS, we have a form that represent 1 table, and several grid, around 2-3 table grids. so, in my mind the grid = one result... after trying several model, i see that every form or table grid need 1 resu

Url-Parameters only set once

2008-04-06 Thread Marc Ende
Hi, I've got a list with several items which are linked to a details-action. If I klick on an item after the restart of the webapp a link like http://.../details.action?id=123 is called. Everything is fine. I can see the correct details site. When I go back and klick on another item (with another

The requested resource (/struts2-blank-2.0.11.1/emsitem/index.jsp) is not available.

2008-04-06 Thread ghan_java
hi , i tried to add new jsp in struts2-blank application, iand i have configer it into sturts.xml but it's /emsitem/emsList.jsp /emsitem/editItem.jsp

Re: [OT] What do you code today?

2008-04-06 Thread Al Sutton
It's a port from a combination of S1.3, actions, and servlets, so it's been a big jump. There aren't that many hurdles once you're familiar with the S2 way of doing things. S2 has made life a lot easier, the UI codebase a lot smaller, and is generally a good move. - Original Message

Re: [OT] Re: Struts2 and tag

2008-04-06 Thread Gabriel Belingueres
Seems you missed to add the Apache Commons Lang library jar file. I have projects running with displaytag 1.1.1 and commons-lang 2.3. (Don't know if the last 2.4 version work though.) Gabriel 2008/4/5, Dave Newton <[EMAIL PROTECTED]>: > --- aum strut <[EMAIL PROTECTED]> wrote: > > here is the ex