Re: Is AjaxFormLoop example working for you?

2009-07-22 Thread moonlee

I use AjaxFormLoop-addrow-addrowlink-parameter to dynamic add a row , I want
to fill the row with some defult value which base on the link param user
click. 

for example: 

tml: 

 

  Add a row 



  Add a row 

 


java: 

PersonHolder onAddRow(Object value) { 
// Create a skeleton Person and add it to the displayed list
with a unique key 
Person newPerson = PersonService.findPersonById(value); 
PersonHolder newPersonHolder = new PersonHolder(newPerson,
true, 0 - System.nanoTime()); 
_personHolders.add(newPersonHolder); 

return newPersonHolder; 
} 


Geoff Callender-2 wrote:
> 
> Everyone,
> 
> Please try this quick experiment. I am trying to figure out why it  
> works for some people and not for others.
> 
> The experiment is: go to the following two pages and click on "Add a  
> row"...
> 
> 
> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/ajaxformloop1
> 
> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/ajaxformlooptailored1
> 
> Did it work? Please reply here with whether it worked or not, and  
> include whether you are running through a proxy, whether you OS is  
> Windows, and what country you are in.
> 
> Hopefully there's a pattern.
> 
> Thanks,
> 
> Geoff
> 
> P.S. The people who reported a problem say that the blackbird console  
> shows this kind of thing:
> 
> # Communication with the server failed: The rendered content did not  
> include any elements that allow for the positioning of the hidden form  
> field's element.
> # Ajax failure: Status 500 for /jumpstart/examples/tables/ 
> ajaxformlooptailored1 
> .ajaxformloop 
> .rowinjector:inject;jsessionid=3BB5CE5E0D166AC91A4561295B8F5151? 
> t:formcomponentid=examples/tables/ 
> AjaxFormLoopTailored1:personsedit&t:formid=personsedit: The rendered  
> content did not include any elements that allow for the positioning of  
> the hidden form field's element.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Is-AjaxFormLoop-example-working-for-you--tp24526565p24603337.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Has AjaxFormLoop-addrow-addrowlink-parameter context value?

2009-07-20 Thread moonlee

I use AjaxFormLoop-addrow-addrowlink-parameter to dynamic add a row , I want
to fill the row with some defult value which base on the link param user
click.

for example:

tml:


   
  Add a row
   

   
  Add a row
   



java:

PersonHolder onAddRow(Object value) {
// Create a skeleton Person and add it to the displayed list 
with a unique
key
Person newPerson = PersonService.findPersonById(value);
PersonHolder newPersonHolder = new PersonHolder(newPerson, 
true, 0 -
System.nanoTime());
_personHolders.add(newPersonHolder);

return newPersonHolder;
}


-- 
View this message in context: 
http://www.nabble.com/Has-AjaxFormLoop-addrow-addrowlink-parameter-context-value--tp24581110p24581110.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T 5.1 How to inject Spring beans by name?

2009-05-23 Thread moonlee

Hi, Otho.
Do you have some solutions for then problem.
I get the exceptions now, and I don't want to use the ApplicationContext
Service
to get bean by name.


Otho wrote:
> 
> Since Spring beans are not exposed anymore as services I get exceptions
> like
> 
> 
> Error obtaining injected value for field org.example.user.Login.dao:
> Spring
> context contains 2 beans assignable to type org.example.dao.Dao: dao,
> daoImpl.
> 
> I couldn't find anything in the docs about injecting by name. And the
> proposes workaround for non singletons with injecting ApplicationContext
> and
> then get the bean by name/id  works, but is a bit awkward in cases like
> this.
> 
> Is there some other possibility? If not, is support for injection by name
> planned in the future without the 5.0 compatibility mode?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T-5.1-How-to-inject-Spring-beans-by-name--tp22934788p23690308.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org