Re: tapestry 4 radio group

2011-01-21 Thread Dariusz Majewski
Richard is right.

It would have to be more like this:


  

  


Also if values assigned to radio components are 'activeServer.id', let's
assume it's Long, then 'selected' parameter of your  activeServerRadioGroup
component should be of type Long as well, so maybe you need another property



and then use it like this:





I haven't tested this code though.

Dariusz

On Thu, Jan 20, 2011 at 2:33 PM, Richard Kirby  wrote:

> Hi,
>
> Can you say a little more exactly what you are trying to do as your HTML
> doesn't appear to be correct. The RadioGroup needs to wrap around the Radio
> buttons at the very least.
>
> Richard
>
> On 19 Jan 2011, at 19:29, sunray 2003 wrote:
>
> > Hi,
> >
> > I am unable to get the tapestry 4 radio group working.
> >
> > My HTML
> >
> > 
> > 
> >
> > My .page
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  
> > 
> >
> > In my .java file I have a method getActiveServers() that returns a list
> of
> > custom class with selected, id attributes. The above structure is not
> > working. Can somebody help?
> >
> > Thanks.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: JIRA TAP5_103 provide access to component parameters from within mixins

2010-08-19 Thread Dariusz Majewski
Hi,

You have to use @BindParameter annotation described here:
http://tapestry.apache.org/tapestry5.2-dev/guide/mixins.html

Regards,
Darek

On Thu, Aug 19, 2010 at 10:31 PM, Shing Hing Man  wrote:

> JIRA TAP5_103 is marked as fixed in Tap 5.2.0.
> https://issues.apache.org/jira/browse/TAP5-103
>
> Does anyone know where I can find an example on reading a component
> parameters from within a mixin ?
>
> Does it work by simply inject the component for which the mixin is
> attached, in the mixin Java class ?
> Eg
> @InjectContainer
>private Object container;
>
>
>
> Thanks in advance for any assistance !
> Shing
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


[T5] debugging in eclipse

2010-05-25 Thread Dariusz Majewski
Hi All,

 I'm having problems debugging my tapestry application. I'm using
Eclipse 3.5.0 and tapestry 5.2-SNAPSHOT.
I have a custom component with parameter

@Parameter(value="120")
private int maxWidth;

which is then set during my component invocation inside page


now I have a eventListener in my component let's say sth like this

public StreamResponse onMyCustomEvent(){
if(300 > maxWidth){
return new
TextStreamResponse(responseRenderer.findContentType(this), "300 >
"+maxWidth);// this is never executed
}
return new TextStreamResponse(responseRenderer.findContentType(this),
"everything is OK - "+maxWidth);//
}

Now my problem is that when I debug onMyCustomEvent method I can't see the
real value of maxWidth parameter. Debugger shows me this value as 0 but the
response I get from my listener is "everything is OK - 1200". I can see that
my component object has a field created by tapestry _$maxWidth$conduit that
corresponds to maxWidth and this object has a value field that contains my
1200 value.

I'm writing because maybe someone had a similar problem or knows how to
setup eclipse to show real value of maxWidth without looking
inside _$maxWidth$conduit. The same thing happens to fields inside my pages.
I can see their values only by inspecting the conduit but corresponding
fields are null.

Best regards,
Dariusz


Re: @For how to check last element?

2010-03-20 Thread Dariusz Majewski
Hi,

You just have to use 'index' parameter of @For component.

< jwcid="@For" source="ognl:theList" value="elem" index="loopIndex">
   < jwcid="@If" condition="ognl:loopIndex == (theList.size()-1)">
 last element :]

Cheers,
Dariusz


On Fri, Mar 19, 2010 at 5:09 AM, asianCoolz  wrote:

> when using   how to check for whether the element is last element in the loop?
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: How to create absolute URL?

2010-03-17 Thread Dariusz Majewski
Hi,

Not sure that this is the best way, but I did it like this:

@Inject
private Request request;

@Inject
private RequestGlobals requestGlobals;

public String getHostUrl(){
if(hostUrl == null){
hostUrl =
getRequestGlobals().getHTTPServletRequest().getScheme()+"://";
hostUrl += getRequest().getServerName();
if(getRequestGlobals().getHTTPServletRequest().getServerPort()
!= 80){
hostUrl +=
":"+getRequestGlobals().getHTTPServletRequest().getServerPort();
}
}
return hostUrl;
}

--
Cheers,
Dariusz


On Wed, Mar 17, 2010 at 7:35 PM, Algirdas  wrote:

>
> For registration process, I need to send user an email with an absolute
> link
> to my site, which finalizes the
> registration, that is, full URL with protocol (may be https), site name,
> page & parameters:
>
> http://www.somemysite.com/register/p=RTWE343434dsfdf3435353sfsdfsdfdsf
>
>
> Is there a way from Tapestry (5.1.0.5) to generate such URL?
> --
> View this message in context:
> http://n2.nabble.com/How-to-create-absolute-URL-tp4752509p4752509.html
> Sent from the Tapestry Users 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: Render large page

2010-03-15 Thread Dariusz Majewski
Hi,

   Actually Dmitry is right that javascript variables are invalid. They
cannot contain '-' character and error that is shown when they do is exactly
"SyntaxError: missing ; before
statement". I've happend to have similiar issue. This is because tapestry
adds '-' + random number to generated client ids during ajax request. You
propably could still use RoundCornerContainer component you just have to
change your code to remove '-' from client id's for example
   pageRenderSupport.addScript("
var %s = new Ck.Rounded('%s', '%s', '%s',
'%s', '%s');",

 getClientId().replace("-",""), getClientId(), bgcolor, fgcolor, size,
renderPart);

Above should fix the problem.

Kind Regards,
Dariusz

On Sat, Mar 6, 2010 at 7:38 AM, Henry Chen  wrote:

>
> The variables are valid. The problem is both Confirm and
> RoundCornerContainer
> components use prototype to manipulate the html. I ended up replacing those
> component with some simple js functions and problem solved.
> --
> View this message in context:
> http://n2.nabble.com/Render-large-page-tp4677583p4685449.html
> Sent from the Tapestry Users 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: tapestry 5 - How to call peekUniqueId?

2010-01-07 Thread Dariusz Majewski
What I was trying to achieve is to have element to trigger formInjector
above forminjector component. Finally I was able to do so by using logic
similar to Label component.

I wrote a new component:

public class FormInjectorTrigger {

@Parameter(required=true)
private ClientElement target;

@Environmental
private Heartbeat heartbeat;

private Element element;

void beginRender(final MarkupWriter writer){
element = writer.element("a");
writer.attributes("href","#");

heartbeat.defer(new Runnable() {
@Override
public void run() {
element.forceAttributes("onclick",
"$('"+target.getClientId()+"').trigger();");
}
});
}

void afterRender(MarkupWriter writer)
{
writer.end(); // a
}
}

and use example is:

Click me...







inside java:
@Inject
private Block textBlock;

public Object onActionFromFormInjector() {
return textBlock;
}

I would really like someone to comment on this. Is there an easier approach?

I have to admit I don't understand how heartbeat works. When I used
writer.attributes("onclick", "$('"+target.getClientId()+"').trigger();")
instead of element.forceAttributes these attributes where added to a form
tag.

Cheers,
Dariusz



On Thu, Jan 7, 2010 at 12:22 AM, Howard Lewis Ship  wrote:

> Generally, you should wait until after a component has rendered, then
> invoke getClientId() on it.
>
> On Wed, Jan 6, 2010 at 4:00 PM, Dariusz Majewski
>  wrote:
> > Hi All,
> >
> >In tapestry4, IRequestCycle has a peekUniqueId method
> > (link<
> http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/IRequestCycle.html#peekUniqueId%28java.lang.String%29
> >).
> > How to achieve that in tapestry5 ?
> >
> > Thanks,
> > Dariusz
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


tapestry 5 - How to call peekUniqueId?

2010-01-06 Thread Dariusz Majewski
Hi All,

In tapestry4, IRequestCycle has a peekUniqueId method
(link<http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/IRequestCycle.html#peekUniqueId%28java.lang.String%29>).
How to achieve that in tapestry5 ?

Thanks,
Dariusz


Re: Is AjaxFormLoop example working for you?

2009-12-27 Thread Dariusz

I am able to reproduce this error by removing all rows and then refreshing
the page using browser's refresh button (pressing F5), not the "Refresh"
button one on the page. 


Dariusz wrote:
> 
> I was going through Tapestry JumpStart:Demo. I've accessed both
> ajaxFormLoop pages and they were working fine. Then I've found this
> discussion. Clicked the first link from Geoff's post: 
> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/ajaxformloop1
> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/ajaxformloop1
>  
> and now I'm getting following error every time I access it:
> org.apache.tapestry5.internal.services.RenderQueueException
> Render queue error in
> AfterRender[examples/tables/AjaxFormLoop1:ajaxformloop.fragment]: The
> rendered content did not include any elements that allow for the
> positioning of the hidden form field's element.
> 
> Attached is the full error page.
>  http://old.nabble.com/file/p26457598/ajaxformloop1.htm ajaxformloop1.htm 
> 
> I have XP, firefox 3.5.5, cookies enabled, no proxy.
> 
> Hope this helps in any way.
> 

-- 
View this message in context: 
http://old.nabble.com/Is-AjaxFormLoop-example-working-for-you--tp24526565p26938520.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: [T5]Has AjaxFormLoop-addrow-addrowlink-parameter context value?

2009-11-23 Thread Dariusz

Is it possible?
Maybe there is a workaround for this.


moonlee wrote:
> 
> 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://old.nabble.com/-T5-Has-AjaxFormLoop-addrow-addrowlink-parameter-context-value--tp24581110p26482486.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: Is AjaxFormLoop example working for you?

2009-11-21 Thread Dariusz

I was going through Tapestry JumpStart:Demo. I've accessed both ajaxFormLoop
pages and they were working fine. Then I've found this discussion. Clicked
the first link from Geoff's post: 
http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/ajaxformloop1
http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/ajaxformloop1
 
and now I'm getting following error every time I access it:
org.apache.tapestry5.internal.services.RenderQueueException
Render queue error in
AfterRender[examples/tables/AjaxFormLoop1:ajaxformloop.fragment]: The
rendered content did not include any elements that allow for the positioning
of the hidden form field's element.

Attached is the full error page.
http://old.nabble.com/file/p26457598/ajaxformloop1.htm ajaxformloop1.htm 

I have XP, firefox 3.5.5, cookies enabled, no proxy.

Hope this helps in any way.

-- 
View this message in context: 
http://old.nabble.com/Is-AjaxFormLoop-example-working-for-you--tp24526565p26457598.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: [T5] - XHtml - wiki info outdated

2008-09-24 Thread ProAdmin Dariusz Dwornikowski
It works, method you mention can return null.  My only problem is that
my form does not work with XHTML

2008/9/24 Francois Armand <[EMAIL PROTECTED]>:
> Andy Pahne wrote:
>>
>> How do I make T 5.0.15 emit XHTML?
>>
>> The Howto at http://wiki.apache.org/tapestry/Tapestry5HowToXhtml is
>> outdated, because MarkupWriterFactory now has another method that is not
>> mentioned in the wiki:  [...]
>
> I just posted an update to the wiki that works with 5.0.14 (and I think
> nothing change for 5.0.15 in this aera). Hope it help !
>
>
> --
> Francois Armand
> Etudes & Développements J2EE
> Groupe Linagora - http://www.linagora.com
> Tél.: +33 (0)1 58 18 68 28
> ---
> InterLDAP - http://interldap.org FederID - http://www.federid.org/
> Open Source identities management and federation
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Pozdrawiam,
Dariusz Dwornikowski

ProAdmin - Outsourcing IT
ul. Królowej Jadwigi 44/2 61-872 Poznań
tel: 061 623-20-92 kom: 0601 59-64-74 fax: 061 623-20-93
www.proadmin.com.pl


DateField + FCK possible bug?

2008-09-22 Thread ProAdmin Dariusz Dwornikowski
HI,

I do not know hwther it is a bug or not.

Happens on T5.0.14 and .15.


In safari 3.1.2 :

When I have FCK and DateField on the same page, little calendar is not
clickable.

In FF 3:

Calendar is clickable, but: In case I have predefined value in page
code, ex: private Date dateOfFoo = new Date(), the calendar after
clicking is empty and the header says NaN Undefined.
If I do not predefine, the calendar is ok.




-- 
Pozdrawiam,
Dariusz Dwornikowski

ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel:  061 623-20-92
kom: 0601 59-64-74
fax: 061 623-20-93
www.proadmin.com.pl
[EMAIL PROTECTED]


Re: Problem with Javascript ( i suspect)

2008-09-14 Thread ProAdmin Dariusz Dwornikowski
Yes. Im dumb. Sorry.

W dniu 14 września 2008 04:13 użytkownik Howard Lewis Ship
<[EMAIL PROTECTED]> napisał:
> The generated page must have a  element and a  element for
> the JavaScript integration to work.
>
> On Sat, Sep 13, 2008 at 8:59 AM, ProAdmin Dariusz Dwornikowski
> <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> Im doing application in 5.0.14. Everything worked nice, but now i have
>> got a problem with JS things, like datepicker and FCK from
>> t5components. They do not work, for example icon for datepicker shows
>> up, but no action when i click on it. Instead of FCK normal textarea
>> is shown. I can also see that :
>> > Pozdrawiam,
>>Dariusz Dwornikowski
>> 
>> ProAdmin
>> ul. Królowej Jadwigi 44/2
>> 61-872 Poznań
>> tel: 061 623-20-92
>> kom: 0601 59-64-74
>> fax: 061 623-20-93
>> www.proadmin.com.pl
>> [EMAIL PROTECTED]
>>
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>



-- 
Pozdrawiam,
Dariusz Dwornikowski

ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel: 061 623-20-92
kom: 0601 59-64-74
fax: 061 623-20-93
www.proadmin.com.pl
[EMAIL PROTECTED]


Problem with Javascript ( i suspect)

2008-09-13 Thread ProAdmin Dariusz Dwornikowski
Hi,

Im doing application in 5.0.14. Everything worked nice, but now i have
got a problem with JS things, like datepicker and FCK from
t5components. They do not work, for example icon for datepicker shows
up, but no action when i click on it. Instead of FCK normal textarea
is shown. I can also see that :

Re: I'd like to generate valid XHTML

2008-09-12 Thread ProAdmin Dariusz Dwornikowski
 a filter is to invoke the
> corresponding method
>// in the handler. When you chain multiple filters
> together, each filter
>// received a handler that is a bridge to the next
> filter.
>
>return handler.service(request, response);
>}
>finally
>{
>long elapsed = System.currentTimeMillis() - startTime;
>
>log.info(String.format("Request time: %d ms", elapsed));
>}
>}
>};
>}
>
>/**
> * This is a contribution to the RequestHandler service configuration.
> This is how we extend
> * Tapestry using the timing filter. A common use for this kind of
> filter is transaction
> * management or security.
> */
>public void contributeRequestHandler(OrderedConfiguration
> configuration,
>@InjectService("TimingFilter")
>RequestFilter filter)
>{
>// Each contribution to an ordered configuration has a name, When
> necessary, you may
>// set constraints to precisely control the invocation order of the
> contributed filter
>// within the pipeline.
>
>configuration.add("Timing", filter);
>}
> }
>
>
>
>
> import org.apache.tapestry5.ContentType;
> import org.apache.tapestry5.MarkupWriter;
> import org.apache.tapestry5.dom.MarkupModel;
> import org.apache.tapestry5.internal.services.MarkupWriterImpl;
> import org.apache.tapestry5.services.MarkupWriterFactory;
>
> /**
>  * @author luther.baker
>  */
> public class XhtmlMarkupWriterFactory implements MarkupWriterFactory
> {
>// private
>private final MarkupModel xmlModel = new ImprovedXhtmlMarkupModel();
>
>/**
> * @see
> org.apache.tapestry5.services.MarkupWriterFactory#newMarkupWriter(org.apache.tapestry5.ContentType)
> */
>@Override
>public MarkupWriter newMarkupWriter(ContentType contentType)
>{
>return new MarkupWriterImpl(xmlModel,
> contentType.getParameter("charset"));
>}
>
>/**
> * @see
> org.apache.tapestry5.services.MarkupWriterFactory#newMarkupWriter(java.lang.String)
> */
>@Override
>public MarkupWriter newMarkupWriter(String pageName)
>{
>// TODO Auto-generated method stub
>return null;
>}
>
> }
>
>
>
>
> import java.util.HashSet;
> import java.util.Set;
>
> import org.apache.tapestry5.dom.DefaultMarkupModel;
> import org.apache.tapestry5.dom.EndTagStyle;
>
> /**
>  * @author luther.baker
>  */
> public class ImprovedXhtmlMarkupModel extends DefaultMarkupModel
> {
>private static final Set DONT_ABRV = newSet("script", "div",
> "span", "p");
>
>@Override
>public EndTagStyle getEndTagStyle(String element)
>{
>boolean isDontAbr = DONT_ABRV.contains(element);
>return isDontAbr ? EndTagStyle.REQUIRE : EndTagStyle.ABBREVIATE;
>}
>
>@Override
>public boolean isXML()
>{
>return true;
>}
>
>private static final Set newSet(String a, String b, String c,
> String d)
>{
>Set set = new HashSet();
>set.add(a);
>set.add(b);
>set.add(c);
>set.add(d);
>return set;
>}
>
> }
>
>
>
>
>
> 2008/9/9 Luther Baker <[EMAIL PROTECTED]>
>
>> I do remember the generics being a bit tricky but not too bad.
>>
>> I will post what I have a bit later tonite.
>>
>> -Luther
>>
>>
>>
>>
>>
>> On Tue, Sep 9, 2008 at 12:24 PM, ProAdmin Dariusz Dwornikowski <
>> [EMAIL PROTECTED]> wrote:
>>
>>> And it wokred for you ?
>>>
>>> public static void contributeAlias(Configuration
>>> configuration) {
>>>
>>>  configuration.add(AliasContribution.create(MarkupWriterFactory.class,
>>> new XhtmlMarkupWriterFactoryImpl()));
>>>}
>>>
>>>
>>> I get error after insering that in AppModule. Eclipse says:
>>>
>>>
>>> The method create(Class, X) in the type AliasContribution is not
>>> applicable for the arguments
>>> (Class,XhtmlMarkupWriterFactoryImpl)
>>>
>>>
>>>
>>> W dniu 9 września 2008 19:18 użytkownik Luther Baker
>>> <[EMAIL PROTECTED]> napisał:
>>> >
>>> > I followed the wiki instructions and the other posts here and yes, I am
>>> > generating correct X

Re: I'd like to generate valid XHTML

2008-09-09 Thread ProAdmin Dariusz Dwornikowski
And it wokred for you ?

public static void contributeAlias(Configuration
configuration) {

configuration.add(AliasContribution.create(MarkupWriterFactory.class,
new XhtmlMarkupWriterFactoryImpl()));
}


I get error after insering that in AppModule. Eclipse says:


The method create(Class, X) in the type AliasContribution is not
applicable for the arguments
(Class,XhtmlMarkupWriterFactoryImpl)



W dniu 9 września 2008 19:18 użytkownik Luther Baker
<[EMAIL PROTECTED]> napisał:
>
> I followed the wiki instructions and the other posts here and yes, I am
> generating correct XHTML now.
>
> I haven't attempted to remove the superfluous tapestry css file nor have I
> convinced the library to put the Content-Type meta tag first - but I'm
> satisfied with valid XHTML.
>
> The only other style *thing* I've been been disappointed with is that things
> like the provided beaneditform template (from the tutorial) include
> Javascript files within the html body tags. Although it generally works in
> most browsers, I don't think script tags are legal body tag children .. ie:
> not XHTML compliant. I loved to be proved wrong but as far as I know, it is
> generally considered poor practice to include Javascript in the body tags of
> the html.
>
> That said, I'm not sure whether this component just needs to be tweaked or
> if this is inherent in component html frameworks since the Javascript is
> relevant to the component being referenced. The
> [EMAIL PROTECTED] makes me think that it is also
> possible to do the same for
> Javascript files - but I've not written or tried to fix the provided
> beaneditform. I found this:
> [EMAIL PROTECTED]("${tapestry.scriptaculous}/dragdrop.js")
> but I have to assume it is being used in the beaneditform - and in that
> case, it is NOT pushing these script includes into HEAD ... but I suppose
> it'd be best to look at the source in this case.
>
> All in all - these are minor style points - it really is a fantastic
> framework.
>
> -Luther
>
>
>
> On Tue, Sep 9, 2008 at 11:18 AM, ProAdmin Dariusz Dwornikowski <
> [EMAIL PROTECTED]> wrote:
>
> > Did you manage to achieve it in 5.0.14 ? Im very curious, how to do the
> > Wiki
> > method in 5.0.14.
> >
> > 2008/9/1 Luther Baker <[EMAIL PROTECTED]>
> >
> > > Is there a way to adjust the html that is generated - especially in the
> > > header?
> > >
> > > Specifically, the generated head section does not appear to be xhtml
> > > compliant.
> > >
> > > Here is what I'm including in my own custom "wrapping" component:
> > >
> > >  > >  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";
> > > lang="en">
> > >
> > >
> > >${pageTitle}
> > >
> > >
> > >
> > >
> > > *A few points:
> > > *
> > > a) The xhtml strict DOCTYPE should be pretty straightforward
> > > b) I want the Content-Type first in the  tag
> > > c) The meta tag *MUST* have a closing slash - otherwise the document is
> > not
> > > well formed.
> > > d) The same goes for the two  > must
> > > be well formed.
> > >
> > >
> > > *Unfortunately, my application ends up generating
> > > *
> > >  > >   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> > > http://www.w3.org/1999/xhtml";>
> > > 
> > >  > > type="text/css">
> > > 
> > > Home
> > > 
> > > 
> > >
> > >
> > > For the most part - this is fine ... but in the details, I believe my
> > > problem is two fold:
> > >
> > > 1) I would really like the "Content-Type" to be the first tag in head.
> > > 2) The link and meta tags are not properly closed. Unfortunately, this
> > > code-gen is just not valid xhtml.
> > >
> > > I do have one last (not so terrible) issue with the EXTRA  > > (tapestry specific css) that is showing up in the head as well. I'm sure
> > it
> > > is nice for exceptions (which the final user should never see) but it has
> > a
> > > few more problems:
> > >
> > > 1) It tells everyone what version of a particular library I am using. I'd
> > > rather not do that.
> > > 2) The tag appears before my Content-Type tag - which as I mentioned, I'd
&

Re: I'd like to generate valid XHTML

2008-09-09 Thread ProAdmin Dariusz Dwornikowski
Did you manage to achieve it in 5.0.14 ? Im very curious, how to do the Wiki
method in 5.0.14.

2008/9/1 Luther Baker <[EMAIL PROTECTED]>

> Is there a way to adjust the html that is generated - especially in the
> header?
>
> Specifically, the generated head section does not appear to be xhtml
> compliant.
>
> Here is what I'm including in my own custom "wrapping" component:
>
>   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";
> lang="en">
>
>
>${pageTitle}
>
>
>
>
> *A few points:
> *
> a) The xhtml strict DOCTYPE should be pretty straightforward
> b) I want the Content-Type first in the  tag
> c) The meta tag *MUST* have a closing slash - otherwise the document is not
> well formed.
> d) The same goes for the two  be well formed.
>
>
> *Unfortunately, my application ends up generating
> *
>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> http://www.w3.org/1999/xhtml";>
> 
>  type="text/css">
> 
> Home
> 
> 
>
>
> For the most part - this is fine ... but in the details, I believe my
> problem is two fold:
>
> 1) I would really like the "Content-Type" to be the first tag in head.
> 2) The link and meta tags are not properly closed. Unfortunately, this
> code-gen is just not valid xhtml.
>
> I do have one last (not so terrible) issue with the EXTRA  (tapestry specific css) that is showing up in the head as well. I'm sure it
> is nice for exceptions (which the final user should never see) but it has a
> few more problems:
>
> 1) It tells everyone what version of a particular library I am using. I'd
> rather not do that.
> 2) The tag appears before my Content-Type tag - which as I mentioned, I'd
> prefer FIRST in the hierarchy.
> 3) Finally, the tapestry stylesheet is not well formed. Again, proper xhtml
> demands that tags be balanced/closed.
>
> I know Code Gen is hard -- but I generally pay extra attention to ensure I
> produce valid, well formed xhtml documents and the codegen going on behind
> the scenes here is making that a bit hard.
>
> Thoughts?
>
> I'm not sure how to close the tags - maybe I can set a flag or pass
> something else in as an xml attribute of the root tag of my templates?
> Regarding the extra tapestry css file inserted ... maybe the Tapestry
> library has a DEBUG and a RELEASE mode? Maybe there a flag to turn off the
> DEBUG mode and put this library into RELEASE mode? I really don't want that
> tapestry specfiic css page requested everytime I serve up a page. I
> understand the filter takes care of it ... but it still shows up in my
> request logs, on user pages, in proxies, etc ...
>
> Is it even wise to consider opening up the tapestry JARs and see if the
> components implementeing this section of code can simply be tweaked to have
> proper xhtml balance.
>
> On a positive note, the library is working well and I enjoy the general
> programming model. I think convention is great - but it needs to be valid
> in
> this case. Thanks again in advance for any thoughts.
>
> -Luther
>



-- 
Pozdrawiam,
Dariusz Dwornikowski

ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel: 061 623-20-92
kom: 0601 59-64-74
fax: 061 623-20-93
www.proadmin.com.pl
[EMAIL PROTECTED]


Re: Tapestry App Replication

2008-09-08 Thread ProAdmin Dariusz Dwornikowski
I think you have to do it on application server level. Tomcat sticky
sessions etc.

2008/9/8 Carl Crowder <[EMAIL PROTECTED]>

> Hi all,
>
> Is it possible to run multiple instances of a Tapestry app on various
> servers, but have them share session and application state?
>
> Carl
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Pozdrawiam,
Dariusz Dwornikowski

ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel: 061 623-20-92
kom: 0601 59-64-74
fax: 061 623-20-93
www.proadmin.com.pl
[EMAIL PROTECTED]


ASO question

2008-09-06 Thread ProAdmin Dariusz Dwornikowski
Hi
I implemented data source as in book ( db4o also ).  I got some problems.
I keep the DataSource object in ASO. I can see that on every page I use it,
the ASO calls its constructor. I would like to create it as singleton, so I
do not get lockfile exceptions, which i get in case of db4o.




-- 
Pozdrawiam,
Dariusz Dwornikowski

ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel: 061 623-20-92
kom: 0601 59-64-74
fax: 061 623-20-93
www.proadmin.com.pl
[EMAIL PROTECTED]


Re: Tapestry 5

2008-09-03 Thread ProAdmin Dariusz Dwornikowski
http://wiki.apache.org/tapestry/Tapestry5Layoutcomponent
Look here.

2008/9/3 Alex Florentino <[EMAIL PROTECTED]>

> How  to make  an "complex" component layout using tapestry5, I read the T5
> begin tutorial and it works fine, but I need create an component layout
> with
> big left menu and then I would like separate at my layout.tml in various
> tml
> files such as leftmenu.tml, footer.tml etc..
>
> how to make it ?
>
> thanks,
>
> Alex
>



-- 
Pozdrawiam,
Dariusz Dwornikowski

ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel: 061 623-20-92
kom: 0601 59-64-74
fax: 061 623-20-93
www.proadmin.com.pl
[EMAIL PROTECTED]


Re: T5 : [ANN] The book - next steps

2008-09-03 Thread ProAdmin Dariusz Dwornikowski
;>>> probably on the wiki).
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>> +1 I can't thing of another way of kicking off this project.
> >>>>> I just suggest another step: just start writing real content after
> >>>>> refining
> >>>>> the table of contents, thus avoiding some Frankensteinian results.
> >>>>>
> >>>>>  2. Experiment somewhat w/ the publishing / collaboration
> methodology.
> >>>>>   +1
> >>>>>
> >>>>>  3. One of my areas of concern is how the merging of xml/docbook
> would
> >>>>> work
> >>>>>
> >>>>>
> >>>>>
> >>>>>>
> >>>>>> in the long term. I know it's just text, but I'd imagine the
> doc-book
> >>>>>> project will probably have it's own way of editing content and
> >>>>>> converting
> >>>>>> it into docbook
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>> I always tend to prefer handwriting documents and code over tools (so
> >>>>> Howard's Tapestry 5, I guess :) and we could define some policies
> >>>>> related
> >>>>> to
> >>>>> use of tags, whitespace and maximum line length. I think the merging
> >>>>> problems would be reduced this way.
> >>>>>
> >>>>>  5. I think it would be best if we use either an existing "examples"
> >>>>>
> >>>>>
> >>>>>
> >>>>>>
> >>>>>> project  (e.g. like jumpstart) or take one and modify it to fit
> under
> >>>>>> a
> >>>>>> particular
> >>>>>> theme that gets developed throughout the book
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>> +1 to find one single application that will be developed throughout
> the
> >>>>> book. It should be hosted in some repository (SourceForge, java.net,
> >>>>> etc).
> >>>>> Maybe it could even be integrated as a Tapestry subproject.
> >>>>>
> >>>>>  Here are a couple more outstanding and pesky issues that are still
> >>>>> very
> >>>>>
> >>>>>
> >>>>>
> >>>>>>
> >>>>>> murky in my head :
> >>>>>> 1. Would a book like this be published under some open source
> license
> >>>>>> (e.g.I know that there are a couple of 'open source' books, e.g. the
> >>>>>> CVS
> >>>>>> book the SVN book, etc) , maybe Creative commons ?
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>> It would be really hard to define each contributor share in the
> >>>>> profits,
> >>>>> so
> >>>>> I think some open license and proper credits would be a better fit.
> >>>>> This
> >>>>> would also attract more people to Tapestry 5, as there would be more
> >>>>> free
> >>>>> documentation in the internet about it.
> >>>>>
> >>>>> The open source book does not prevent a printed version of the book.
> >>>>> 37signals, for example, sells the PDF and printed versions of ther
> >>>>> Getting
> >>>>> Real book, but it can be read for free in their website (
> >>>>> http://gettingreal.37signals.com/). By the way, very interesting
> read.
> >>>>> :)
> >>>>>
> >>>>>  2. How to make the decisions regarding a book's content ? Would it
> be
> >>>>> some
> >>>>>
> >>>>>
> >>>>>
> >>>>>>
> >>>>>> voting involved ? E.g. if someone thinks a particular chapter should
> >>>>>> be
> >>>>>> in
> >>>>>> the book, and others don't agree, how to decide if the chapter is in
> >>>>>> the
> >>>>>> book or no (here comes the concept of "committers" again)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>> Looking at several different projects , there are two main ways to
> >>>>> organize
> >>>>> a team:
> >>>>> 1) Benevolent dictatorship. The team has a leader that listens to
> >>>>> everybody, but he/she decides.
> >>>>> 2) Straight democracy. We could (re)use the Apache model (my choice).
> >>>>>
> >>>>>  3. Can we continue using this T5 users list or discussions regarding
> >>>>> the
> >>>>>
> >>>>>
> >>>>>
> >>>>>>
> >>>>>> book are a distraction ?
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>> IMHO, the Tapestry users list is already used for two very different
> >>>>> Tapestry versions, so we should open some other communication channel
> >>>>> (forum, another mailing list, maybe a tapestry-book one).
> >>>>>
> >>>>> Another questions:
> >>>>>
> >>>>> 4) Would it only cover 1st party packages or 3rd party ones
> >>>>> (t5components,
> >>>>> chinellikit, etc) too?
> >>>>>
> >>>>> My first thoughts: yes, and the 3rd party packages would happily
> write
> >>>>> about their creations. I would. :)
> >>>>>
> >>>>> 5) Would it also have a cookbook section or chapter?
> >>>>>
> >>>>> My answer: yes, and we could reuse the Tapestry wiki pages here. The
> >>>>> book
> >>>>> would then be something like a central place to find additional
> >>>>> information,
> >>>>> something similar to what the Hibernate document is.
> >>>>>
> >>>>>  I'm really very positively surprised by the amount of feedback so
> far,
> >>>>> and
> >>>>>
> >>>>>
> >>>>>
> >>>>>>
> >>>>>> I'm very curious to see how far we can take this. Please comment on
> >>>>>> any
> >>>>>> of
> >>>>>> the ideas above, rip me to shreds if you think this is the wrong way
> >>>>>> of
> >>>>>> doing it.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>> I second your words, Alex. This is going to be a really interesting
> >>>>> project, involving people from many places around the world, having
> >>>>> different first languages, different visions, but sharing the same
> >>>>> goal:
> >>>>> promoting our favorite Java web framework by writing a good book
> about
> >>>>> it.
> >>>>> :)
> >>>>>
> >>>>> Thiago
> >>>>>
> >>>>> -
> >>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>
> >>
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Pozdrawiam,
Dariusz Dwornikowski

ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel: 061 623-20-92
kom: 0601 59-64-74
fax: 061 623-20-93
www.proadmin.com.pl
[EMAIL PROTECTED]


Re: Multiple file upload

2008-08-30 Thread ProAdmin Dariusz Dwornikowski
Images and pdf/doc/odt. I will use this swfupload, but have no idea how to
pass the filenames to teh class controlling page, so i can put them into my
model.

W dniu 30 sierpnia 2008 18:07 użytkownik Toby Hobson <
[EMAIL PROTECTED]> napisał:

> I'm not sure what type of file you wish to upload but I have successfully
> used the Aurigma image uploader with my T5 application
>
> Toby
>
> 2008/8/30 ProAdmin Dariusz Dwornikowski <
> [EMAIL PROTECTED]>
>
> > Great ! Thanks. Tell me how to take filename from this to Page variable
> and
> > Ill be happy.
> >
> > 2008/8/30 Imants Firsts <[EMAIL PROTECTED]>
> >
> > > If you don't mind introducing the dependency to a flash component, then
> > > look at this:
> > > http://www.swfupload.org/
> > >
> > > I have successfully created a tapestry component using SWFUpload, which
> > > supports multiple file upload and degrades to default single file
> upload
> > if
> > > Flash is not present.
> > >
> > >
> > > Quoting Thiago HP <[EMAIL PROTECTED]>:
> > > > On Thu, Aug 28, 2008 at 3:27 PM, Chris Lewis
> > > > <[EMAIL PROTECTED]> wrote:
> > > > > The tricky part unfortunately is dealing with T5. I don't know how
> > > > you
> > > > > can create new components on the fly.
> > > >
> > > > You just cannot do that. Tapestry 5' mantra is "Static Structure,
> > > > Dynamic Behavior".
> > > > One way to do it would be putting your form inside a zone. Then
> submit
> > > > the form to do the first file uploading. The form would show the list
> > > > of already uploaded files (if any) and show the file upload component
> > > > again.
> > > >
> > > > Thiago
> > > >
> > > > -----
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > > -----
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Pozdrawiam,
> > Dariusz Dwornikowski
> > 
> > ProAdmin
> > ul. Królowej Jadwigi 44/2
> > 61-872 Poznań
> > tel: 061 623-20-92
> > kom: 0601 59-64-74
> > fax: 061 623-20-93
> > www.proadmin.com.pl
> > [EMAIL PROTECTED]
> >
>



-- 
Pozdrawiam,
Dariusz Dwornikowski

ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel: 061 623-20-92
kom: 0601 59-64-74
fax: 061 623-20-93
www.proadmin.com.pl
[EMAIL PROTECTED]


Re: Tapestry group in LinkedIn

2008-08-30 Thread ProAdmin Dariusz Dwornikowski
What about facebook?

2008/8/29 Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]>

> I've created a Tapestry group in LinkedIn and everyone is invited to join.
> :)
>
> http://www.linkedin.com/groups?home=&gid=133965
>
> Thiago
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Pozdrawiam,
Dariusz Dwornikowski

ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel: 061 623-20-92
kom: 0601 59-64-74
fax: 061 623-20-93
www.proadmin.com.pl
[EMAIL PROTECTED]


Re: Multiple file upload

2008-08-30 Thread ProAdmin Dariusz Dwornikowski
Great ! Thanks. Tell me how to take filename from this to Page variable and
Ill be happy.

2008/8/30 Imants Firsts <[EMAIL PROTECTED]>

> If you don't mind introducing the dependency to a flash component, then
> look at this:
> http://www.swfupload.org/
>
> I have successfully created a tapestry component using SWFUpload, which
> supports multiple file upload and degrades to default single file upload if
> Flash is not present.
>
>
> Quoting Thiago HP <[EMAIL PROTECTED]>:
> > On Thu, Aug 28, 2008 at 3:27 PM, Chris Lewis
> > <[EMAIL PROTECTED]> wrote:
> > > The tricky part unfortunately is dealing with T5. I don't know how
> > you
> > > can create new components on the fly.
> >
> > You just cannot do that. Tapestry 5' mantra is "Static Structure,
> > Dynamic Behavior".
> > One way to do it would be putting your form inside a zone. Then submit
> > the form to do the first file uploading. The form would show the list
> > of already uploaded files (if any) and show the file upload component
> > again.
> >
> > Thiago
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Pozdrawiam,
Dariusz Dwornikowski

ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel: 061 623-20-92
kom: 0601 59-64-74
fax: 061 623-20-93
www.proadmin.com.pl
[EMAIL PROTECTED]


Re: Multiple file upload

2008-08-28 Thread ProAdmin Dariusz Dwornikowski
Yeah I will try do something like that. I can see a problem to put the
files ( paths) to the object i want - along with data from form - in
my case a sports news.

2008/8/28 Thiago HP <[EMAIL PROTECTED]>:
> On Thu, Aug 28, 2008 at 3:27 PM, Chris Lewis <[EMAIL PROTECTED]> wrote:
>> The tricky part unfortunately is dealing with T5. I don't know how you
>> can create new components on the fly.
>
> You just cannot do that. Tapestry 5' mantra is "Static Structure,
> Dynamic Behavior".
> One way to do it would be putting your form inside a zone. Then submit
> the form to do the first file uploading. The form would show the list
> of already uploaded files (if any) and show the file upload component
> again.
>
> Thiago
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Pozdrawiam,
Dariusz Dwornikowski

ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel: 061 623-20-92
kom: 0601 59-64-74
fax: 061 623-20-93
www.proadmin.com.pl
[EMAIL PROTECTED]


Re: Multiple file upload

2008-08-28 Thread ProAdmin Dariusz Dwornikowski
Yes I know the page, I keep it open all the time. Im juts new to
tapestry and do not know how to 'bite' it. That is why I wrote here.
Today I will try to wirte some component to have multiple upload.

What I invented is such scenrio:

I get Button (Upload), when i click it and choose file, the file gets
uploaded to server or session maybe, without submit.
After that is done, second button appears and so on.

Can somebody confirm it is a good direction?


2008/8/28 Massimo Lusetti <[EMAIL PROTECTED]>:
> On Thu, Aug 28, 2008 at 5:08 PM, ProAdmin Dariusz Dwornikowski
> <[EMAIL PROTECTED]> wrote:
>
>> I think some major ajax has to be used.
>
> Look into Component Reference on Tapestry5 documentation site
>
>
> --
> Massimo
> http://meridio.blogspot.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Pozdrawiam,
Dariusz Dwornikowski

ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel: 061 623-20-92
kom: 0601 59-64-74
fax: 061 623-20-93
www.proadmin.com.pl
[EMAIL PROTECTED]


Re: Multiple file upload

2008-08-28 Thread ProAdmin Dariusz Dwornikowski
I think some major ajax has to be used.

2008/8/28 Szemere Szemere <[EMAIL PROTECTED]>:
> I don't have a solution to this, but would also be interested to hear of
> one.
>



-- 
Pozdrawiam,
Dariusz Dwornikowski

ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel: 061 623-20-92
kom: 0601 59-64-74
fax: 061 623-20-93
www.proadmin.com.pl
[EMAIL PROTECTED]


Multiple file upload

2008-08-27 Thread ProAdmin Dariusz Dwornikowski
Hi,

I encountered such problem:

I got a news editing page and I would like to be able to upload as
many files as I want. I can do a form with ex. 5 file uploading
fields, but that limits me to 5 ofc.
Is it possible to do such thing, that when i upload one file, I can
trigger a second upload, and so on... (like in gmail web app).
How to pass it to the page object ? Is it possible at all? Any hints?



-- 
Pozdrawiam,
Dariusz Dwornikowski

ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel: 061 623-20-92
kom: 0601 59-64-74
fax: 061 623-20-93
www.proadmin.com.pl
[EMAIL PROTECTED]


Re: Beanedit problem - book example

2008-08-15 Thread ProAdmin Dariusz Dwornikowski
Thank YOU  !! It solved problem.

Now i can proceed with my tapestry education :)

W dniu 16 sierpnia 2008 00:11 użytkownik Howard Lewis Ship
<[EMAIL PROTECTED]> napisał:
> This is some behavior that changes since the writing of the book.
>
> When the BeanEditForm instantiates a new Celeberty instance, it now
> uses the same code that instantiates service implementations (and
> injects dependencies).  By default, Tapestry will find the constructor
> with the most parameters for this purpose, and will attempt to match
> each parameter to a service.
>
> In this case, we don't want that behavior; we want BeanEditForm to
> instantiate via the public no-arguments constructor.
>
> By placing an @Inject annotation on the public no-arguments
> constructor, we can direct BeanEditForm to use that constructor
> instead.
>
> 2008/8/15 Heck, Bob <[EMAIL PROTECTED]>:
>> Make sure Celebrity has a blank constructor and try again.
>>
>> Educated guess, not 100% sure this is the issue.
>>
>> Bob Heck
>>
>>
>> -Original Message-
>> From: ProAdmin Dariusz Dwornikowski [mailto:[EMAIL PROTECTED]
>> Sent: Friday, August 15, 2008 15:49
>> To: users@tapestry.apache.org
>> Subject: Beanedit problem - book example
>>
>> Hi, Im new to tapestry and this list.
>> Im learnign tapestry using the book: Tapestry 5: Building web applications, 
>> and there is the Celebrities application example. I use tapestry 5.0.13, but 
>> when I try to do adding celebrity part i get
>> exception:
>> Page code:
>>
>> 
>>
>> ~
>> Render queue error in SetupRender[AddCelebrity:celebrity.editor]:
>> Exception instantiating instance of
>> com.proadmin.celebrities.model.Celebrity (for component
>> 'AddCelebrity:celebrity.editor'): Error invoking constructor 
>> com.proadmin.celebrities.model.Celebrity(String, String, Date, Occupation, 
>> String, boolean) (at Celebrity.java:35) (for service
>> 'BeanModelSource'): No service implements the interface java.util.Date ~
>>
>> Celebrity.java is a normal POJO model.
>>
>> I suspect it is something Tapestry internal, that changed over time, but i 
>> could not find any clues on google.
>>
>> --
>>
>> Pozdrawiam,
>> Dariusz Dwornikowski
>> 
>> ProAdmin
>> ul. Królowej Jadwigi 44/2
>> 61-872 Poznań
>> tel:  061 623-20-92
>> fax: 061 623-20-93
>> www.proadmin.com.pl
>> [EMAIL PROTECTED]
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>



-- 

Pozdrawiam,
Dariusz Dwornikowski

ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel: 061 623-20-92
fax: 061 623-20-93
www.proadmin.com.pl
[EMAIL PROTECTED]


Beanedit problem - book example

2008-08-15 Thread ProAdmin Dariusz Dwornikowski
Hi, Im new to tapestry and this list.
Im learnign tapestry using the book: Tapestry 5: Building web
applications, and there is the Celebrities application example. I use
tapestry 5.0.13, but when I try to do adding celebrity part i get
exception:
Page code:



~
Render queue error in SetupRender[AddCelebrity:celebrity.editor]:
Exception instantiating instance of
com.proadmin.celebrities.model.Celebrity (for component
'AddCelebrity:celebrity.editor'): Error invoking constructor
com.proadmin.celebrities.model.Celebrity(String, String, Date,
Occupation, String, boolean) (at Celebrity.java:35) (for service
'BeanModelSource'): No service implements the interface java.util.Date
~

Celebrity.java is a normal POJO model.

I suspect it is something Tapestry internal, that changed over time,
but i could not find any clues on google.

--

Pozdrawiam,
Dariusz Dwornikowski

ProAdmin
ul. Królowej Jadwigi 44/2
61-872 Poznań
tel:  061 623-20-92
fax: 061 623-20-93
www.proadmin.com.pl
[EMAIL PROTECTED]