Re: Eclipse Tapestry5 Project version 2.8.0 available for download

2015-02-03 Thread Martin Papy
Hi Dmitry,

My code was slightly different, but I updated it to see if there was any
difference. So now I have this :

public static void
contributeApplicationDefaults(MappedConfigurationString, String
configuration) {
configuration.add(layout.assets, META-INF/assets);
configuration.add(layout.scripts, META-INF/assets/js);
configuration.add(layout.styles, META-INF/assets/css);
configuration.add(layout.images, META-INF/assets/images);
}

But the Tapestry Context is still unable to resolve the following :

@Import(library={
${layout.scripts}/jquery.confirm.js
}, module={
bootstrap/modal,
bootstrap/transition,
})

None of the 3 assets can be properly resolved... Not the end of the world
of course :) Just a heads up.

Again I love this plugin ^^

-- Martin

On Tue, Feb 3, 2015 at 4:16 PM, Dmitry Gusev dmitry.gu...@gmail.com wrote:

 Hi Martin,

 My current goal is to avoid configuration files at this stage if possible,
 but try to get all the data via static code analysis.

 In this sense capabilities of the plugin are somewhat limited, for example,
 this may be implemented with a little effort if you define your symbols via
 SymbolSource configuration add/override (simple case without conditional
 statements), something like:

 public static void contributeApplicationDefaults(

 MappedConfigurationString, Object configuration)

 {

 configuration.add(layout.scripts, foo);

 configuration.add(layout.styles, Constants.BAR);

 }

 Is this your case?

 On Tue, Feb 3, 2015 at 7:45 AM, Martin Papy martin.p...@gmail.com wrote:

  That is indeed a GREAT work :) Awesome :)
 
  If I have 1 quick idea, it would be to be able to configure a symbol list
  so that we can open properly assets from the Import Annotation :). Here
  bellow I would like to defined what ${layout.scripts} points to.
 
  @Import(library={
  ${layout.scripts}/html5shiv-printshiv.js
  },
  stylesheet={
  ${layout.styles}/chronicles/bootstrap.css
  })
 
  -- Martin
 
  On Tue, Feb 3, 2015 at 10:01 AM, Bob Harner bobhar...@gmail.com wrote:
 
   Awesome work, Dmitry! It just gets better and better...
  
   On Mon, Feb 2, 2015 at 1:51 AM, Dmitry Gusev dmitry.gu...@gmail.com
   wrote:
Hey Tapestry Users,
   
I haven't updated release notes for the plugin for almost a year,
 lots
  of
minor features  improvements were released since then.
   
Release 2.8.0 is different, because it introduces basic support for
Tapestry 5.4.
   
Some major changes:
   
   - Tapestry Context View
  - Now shows JavaScript modules, both imported via
  @Import(module=...) and required with
   JavaScriptSupport.require(...)
  - Validation rules for assets updated to include new location:
  META-INF/assets
   
   
   - Tapestry Project Outline View
  - Added support for @ImportModule annotation
  - You can now see a list of services, decorators, advisors, and
  contributors defined in each module. This is in addition to
  Library
  Mappings  JavaScript Stacks. All are clickable and selectable
  - Double click to jump to definition
  - Selecting items in this view updates the JavaDoc view 
 source
  range in Java editor if open (handy for learning the source
 code)
   
As usual you can find updated README with screenshots and download
instructions on Github:
   
https://github.com/anjlab/eclipse-tapestry5-plugin#readme
   
   
--
Dmitry Gusev
   
AnjLab Team
http://anjlab.com
  
   -
   To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
   For additional commands, e-mail: users-h...@tapestry.apache.org
  
  
 



 --
 Dmitry Gusev

 AnjLab Team
 http://anjlab.com



Re: Eclipse Tapestry5 Project version 2.8.0 available for download

2015-02-02 Thread Martin Papy
That is indeed a GREAT work :) Awesome :)

If I have 1 quick idea, it would be to be able to configure a symbol list
so that we can open properly assets from the Import Annotation :). Here
bellow I would like to defined what ${layout.scripts} points to.

@Import(library={
${layout.scripts}/html5shiv-printshiv.js
},
stylesheet={
${layout.styles}/chronicles/bootstrap.css
})

-- Martin

On Tue, Feb 3, 2015 at 10:01 AM, Bob Harner bobhar...@gmail.com wrote:

 Awesome work, Dmitry! It just gets better and better...

 On Mon, Feb 2, 2015 at 1:51 AM, Dmitry Gusev dmitry.gu...@gmail.com
 wrote:
  Hey Tapestry Users,
 
  I haven't updated release notes for the plugin for almost a year, lots of
  minor features  improvements were released since then.
 
  Release 2.8.0 is different, because it introduces basic support for
  Tapestry 5.4.
 
  Some major changes:
 
 - Tapestry Context View
- Now shows JavaScript modules, both imported via
@Import(module=...) and required with
 JavaScriptSupport.require(...)
- Validation rules for assets updated to include new location:
META-INF/assets
 
 
 - Tapestry Project Outline View
- Added support for @ImportModule annotation
- You can now see a list of services, decorators, advisors, and
contributors defined in each module. This is in addition to Library
Mappings  JavaScript Stacks. All are clickable and selectable
- Double click to jump to definition
- Selecting items in this view updates the JavaDoc view  source
range in Java editor if open (handy for learning the source code)
 
  As usual you can find updated README with screenshots and download
  instructions on Github:
 
  https://github.com/anjlab/eclipse-tapestry5-plugin#readme
 
 
  --
  Dmitry Gusev
 
  AnjLab Team
  http://anjlab.com

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




Custom Asset Locator

2015-01-05 Thread Martin Papy
Hi Everyone,

( I am not sure if my previous email reached the ML, so I resend it...
Apologies if I am spamming )

I am following and developing in Tapestry for a while now. Now I am
interested in moving to T5.4.

One area that I stumble upon during migration is Asset Location. Basically
I built for a project (in T5.3 ), a custom AssetLocator that allows the
application to add several kinds of folder outside the static assets and
they are seems by the apps a normal assets ( typically for UGC to be store
outside the application folders ).

The downside of this was that my implementation was based on internal
classes and interfaces ( mainly AssetResourceLocator )

Those are gone now and I would like to know if someone can give me some
hints on the best way to achieve something similar in T5.4 ?

Thanks and regards !

-- Martin


Re: Custom Asset Locator

2015-01-05 Thread Martin Papy
Hi,

No one have an idea on how to achieve this ? I suspect I am not the only
one who need to store user files outside the Application directory ?

I would really appreciate some help

-- Martin

On Mon, Jan 5, 2015 at 3:00 PM, Martin Papy martin.p...@gmail.com wrote:

 Hi Everyone,

 ( I am not sure if my previous email reached the ML, so I resend it...
 Apologies if I am spamming )

 I am following and developing in Tapestry for a while now. Now I am
 interested in moving to T5.4.

 One area that I stumble upon during migration is Asset Location. Basically
 I built for a project (in T5.3 ), a custom AssetLocator that allows the
 application to add several kinds of folder outside the static assets and
 they are seems by the apps a normal assets ( typically for UGC to be store
 outside the application folders ).

 The downside of this was that my implementation was based on internal
 classes and interfaces ( mainly AssetResourceLocator )

 Those are gone now and I would like to know if someone can give me some
 hints on the best way to achieve something similar in T5.4 ?

 Thanks and regards !

 -- Martin



Custom AssetLocator

2014-12-27 Thread Martin Papy
Hi everybody and Happy Holidays !

I am following and developing in Tapestry for a while now. Now I am
interested in moving to T5.4.

One area that I stumble upon during migration is Asset Location. Basically
I build for a project (in T5.3 ), a custom AssetLocator that allows the
application to add several kinds of folder outside the static assets and
they are seems by the apps a normal assets ( typically for UGC ).

The downside of this was that my implementation was based on internal
classes and interfaces mainly AssetResourceLocator )

Thoses are gone now and I would like to know if someone can give me some
hints on the best way to achieve something similar in T5.4 ?

Thanks and regards !

-- Martin


Re: How big is the Tapestry community?

2009-06-06 Thread Martin Papy

I would make exactly the same analysis. I don't know many people that uses
Tapestry... And the book is much too old (even for the 5.0.x). The good
thing is that all the people I showed Tapestry to and tried to work with it
now prefers it :)

Martin



Craig St. Jean-4 wrote:
 
 Well, I've worked at a couple of places and used both Struts and JSF in
 the
 workplace.  I'm the only one that I know that develops using Tapestry (for
 personal use), and maybe 1 or 2 people had heard of it (prior to me
 telling
 them about it).  So my guess?  Probably a low single digit percentage when
 looking at all JEE shops.
 
 And, now that you mention Tapestry in Action, it would be great to get a
 new
 book out there!  I realize that documentation like that is expensive, so
 maybe Formos or yourself starts a place for donations?  The WIKI is so-so,
 and the component references are decent, but it would be really nice to
 have
 something that actually shows the power of Tapestry, along with best
 practices, in 1 place such as a book.
 
 On Sat, Jun 6, 2009 at 12:00 PM, Howard Lewis Ship hls...@gmail.com
 wrote:
 
 Here's a question: how many people are using Tapestry?  And how do you
 figure out how many people are using Tapestry?

 When asked, I answer what I think is an honest answer: there's
 probably 1000 - 2000 teams using Tapestry ... but mostly I pulled that
 number out of the air. That would be one team for every five copies of
 Tapestry in Action sold, but that's now an old book. There's at
 least an order of magnitude from Tapestry to Struts. I wonder how T5
 compares to SpringMVC or Grails?

 So, what would be YOUR estimate and YOUR methodology for determining
 the number of Tapestry coders out there?

 --
 Howard M. Lewis Ship

 Creator of Apache Tapestry
 Director of Open Source Technology at Formos

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


 
 

-- 
View this message in context: 
http://www.nabble.com/How-big-is-the-Tapestry-community--tp23903257p23904406.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: ioc issues overriding MarkupWriterFactory service in 5.1

2009-06-05 Thread Martin Papy

In fact, in the AppModule it should be something like this :

public static void contributeAliasOverrides(
ConfigurationAliasContributionMarkupWriterFactory
configuration,
@InjectService(PageContentTypeAnalyzer)
PageContentTypeAnalyzer analyzer,
@InjectService(RequestPageCache) RequestPageCache cache) {


configuration.add(AliasContribution.create(MarkupWriterFactory.class,
new XhtmlMarkupWriterFactory(analyzer, cache)));
}
-- 
View this message in context: 
http://www.nabble.com/ioc-issues-overriding-MarkupWriterFactory-service-in-5.1-tp23887578p23894060.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



[T5.1] ApplicationInitializer not allways executed

2009-04-06 Thread Martin Papy

Hello everyone,

I noticed something very odd : sometimes the ApplicationInitilizer is not
executed. The difference between two launches ? At first sight : none (no
code changed, db is always recreated).

What I am sure of :

- ApplicationInitializer ( and my contribution ) is always created : I can
see them in logs
- I don't change anything between 2 tries. Just maven jetty:run launched
from Eclipse, then stop then launched again.
- If I execute the same app with T5.0.18 = No problem :
ApplicationInitializer is always launched
- If I switch back to T5.1.0.2 = random phenomenon appears again

At this point... I am not sure it is a real bug... But I don't know were to
look at. One thing is important. This behaviour occured after I added
Spring/JPA (before that I was using tapestry-hibernate Module).

This are the result of two consecutive launches :

Success :

[INFO] services.PlanningModuleInitializer Create PlanningModuleInitializer
 PlanningModuleInitializer.initializeApplication
 
Hibernate: select count(*) as col_0_0_ from TBL_USER userimpl0_ limit ?
[DEBUG] impl.AbstractDaoImpl Count 'class
com.makheia.planning.model.impl.UserImpl' Entities : 0 records
[INFO] impl.UserDaoImpl Initialising UserDao default datas
Hibernate: select userfuncti0_.USERFUNCTION_ID as USERFUNC1_3_3_,
[]
[DEBUG] impl.AbstractDaoImpl Persisting class
com.makheia.planning.model.impl.UserImpl - Object : [User
[Id=0][FullName=admin admin][email=ad...@localhost]]
[DEBUG] interceptors.TimeStampInterceptor Update [createdDate] value to Mon
Apr 06 13:14:47 CEST 2009
[DEBUG] interceptors.TimeStampInterceptor Update [updatedDate] value to Mon
Apr 06 13:14:47 CEST 2009
[DEBUG] interceptors.TimeStampInterceptor Change TimeStamp before saving
[[User [Id=0][FullName=admin admin][email=ad...@localhost]]] : TS = Mon Apr
06 13:14:47 CEST 2009
Hibernate: insert into TBL_USER (TS_CREATEDDATE, TS_LASTMODIFIEDBY,
TS_UPDATEDDATE, USER_ACCOUNT_NON_EXPIRED, USER_ACCOUNT_NON_LOCKED,
USER_CREDENTIALS_NON_EXPIRED, USER_EMAIL, USER_ENABLED, USER_FIRSTNAME,
USER_GROUP_ID, USER_LASTNAME, USER_PASSWORD, USER_PHONENUMBER,
USER_SALUTATION, userFunction, USER_USERNAME) values (?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?)
[INFO] spring.SpringModule Spring version 2.5.6 with 52 defined beans.

Failure (launched 10 sec later without changing anything) :

[INFO] services.PlanningModuleInitializer Create PlanningModuleInitializer
[INFO] spring.SpringModule Spring version 2.5.6 with 52 defined beans.

-- 
View this message in context: 
http://www.nabble.com/-T5.1--ApplicationInitializer-not-allways-executed-tp22906785p22906785.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



Tapestry Nightly

2009-01-14 Thread Martin Papy

Hi,

It seem's that the Nightly site / builds / maven etc are down for some days
now... 

Is there any previewed date for their come back ?

Regards,

Martin
-- 
View this message in context: 
http://www.nabble.com/Tapestry-Nightly-tp21453644p21453644.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] Tapestry + Maven make me crazy !!!

2008-12-07 Thread Martin Papy

Hi Stephane,

I have build a web app -maybe not as complex as yours- but I got a similar
problem once... The solution I found is to force Eclipse to build all
projects inside the same directory completly outside all projects.

Exemple

Project Structure :

/Parent
  |_Module1
  |_Module2
  |_Module3
  |_WebApp

Then I build all build projects (I talk about the Eclipse builder NOT MAVEN)
to a new directory called 'Project_Bin' at the same level as /Parent

/Parent_Bin
/Parent
  |_Module1
  |_Module2
  |_Module3
  |_WebApp

I use the Linked Resources feature to do that. In Eclipse : Windows 
Proference  General  Workspace  Linked Resources

Doing this I was able to use RunJettyRun plugin without any problem and with
the reload possibilities.

Hope this might help you :)

Martin




Stephane Decleire wrote:
 
 I've been working with tapestry 5 in eclipse for several months by now.
 And i have built a complex hierarchy of projects to fullfil my needs :
 2 tapestry 5 applications both using several tapestry 5 libraries. In
 maven, my 2 applications depends of some of the libraries which in turn
 depends on other libraries ... And to be able to declare in one maven
 place a lot of common informations, all of my tapestry projects are
 children
 of a parent pom project.
 A few days ago, i decided to deploy a jar of my project on a server for
 testing purposes. So i run the maven command mvn install from my maven
 parent project in order to rebuild all the tapestry 5 libraries and
 applications and to get the war packaged.
 But since this operation, everything goes wrong :
 1. If i run my tap5 application from maven with mvn jetty:run, the
 application runs normally but i loose the tapestry reload possibilities.
 2. If i run my tap5 application inside eclipse using the jetty launcher
 i've been using for several months, the application don't find my
 libraries anymore.
 
 Any clue ?
 Is my maven hierarchy eronous ?
 What have the maven install command broken ?
 
 Thanks for any help ... I've been looking for a solution for several
 days in google, tap mailing list, docs and wiki ...
 
 Wouldn't it be a precious information if a page would be dedicated to
 maven in the tapestry documentation ? I think that i'm not the only
 tapestry user without maven high skills ...
 
 Stephane
 
 

-- 
View this message in context: 
http://www.nabble.com/-T5--Tapestry-%2B-Maven-make-me-crazy-%21%21%21-tp20886741p20890364.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Rationale behind all possible onActivate methods invoked when context is supplied

2008-11-08 Thread Martin Papy

You can short cut the second call if the first method return a boolean. (
false I believe )...

Martin


Joel Halbert-2 wrote:
 
 Hi,
 
 I've been thinking about how onActivate methods are called...
 
 If i have a page with two onActivate methods:
 
 
 MyPage.onActivate(int modelId1, int modelId2);
 MyPage.onActivate(int modelId1, int modelId2, int modelId3);
 
 and if i have a link to this page which supplies the full 3 argument
 context, (e.g. http://bla.com/MyPage/1/2/3) then T5 will invoke the
 second method and then the first.
 
 What is the rational behind thiinvoking both onActivate methods for the
 same context?
 
 If onActivate methods are an opportunity to intialise models (in this
 case by looking up the model based on the supplied id) then having both
 methods invoked requires us to be defensive about initialisation, if we
 want to avoid unecessary model intialisation and data access:
 
 e.g. i need to write something like this in the first of the above two
 methods:
 
 onActivate(int modelId1, int modelId2){
   if (model1 != null) {
   model1 = model1Dao.getById(model1Id);
   }
 
   if (model2 != null) {
   model2 = model2Dao.getById(model1Id);
   }
 }
 
 (I'm not presuming to have model caching, which i do, but this is
 incidental to the problem illustrated)
 
 I'd be interested to hear how others handle this, and what the merit of
 having all available onActivate methods 
 invoked is when the full context is supplied. 
 
 Rgs,
 
 Joel
 
 -- 
 SU3 Analytics Ltd 
 The Print House 
 18 Ashwin Street
 E8 3DL 
 London 
 
 Tel: +44 (0) 20 3051 8637
 Fax: +44 (0) 20 8196 2215
 Mob: +44 (0) 79 7431 0685 
 www.su3analytics.com 
 
 SU3 Analytics Ltd is a company registered in England and Wales under
 company number 06639473 at registered address 61b Oxford Gardens, London
 W10 5UJ, United Kingdom.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Rationale-behind-all-possible-onActivate-methods-invoked-when-context-is-supplied-tp20397445p20397591.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5 UTF-8 new behaviour in T5.0.14

2008-08-01 Thread Martin Papy

Hello everybody,

I updated with the last Snapshot. Has I understand, T5 now handles by
default everything in UTF-8. That is ok for me.

But how the properties files are handled ?

I updated all my properties files in UTF-8 Encoding but I get odd
characters...

I also tryied with a new test project build with the archetype... same
behaviour. Did I miss something ? Or is it an issue ?

Exemple with the archetype :

Index.properties is in UTF-8 and contains :

test-msg=Déconnexion

Html output :

Déconnexion

The page is in UTF-8, the Content-Type is also declaring UTF-8...

I tried various encoding for the properties file : UTF-8 w/wo BOM,
ISO-8859-1... 

Any help ?

Thanks !
-- 
View this message in context: 
http://www.nabble.com/T5-UTF-8-new-behaviour-in-T5.0.14-tp18772210p18772210.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 UTF-8 new behaviour in T5.0.14

2008-08-01 Thread Martin Papy

Yes !!!

Thank you :)


Howard Lewis Ship wrote:
 
 If you update again, you'll get the snapshot that reads properties
 files correctly (kind of an implicit native2ascii).
 
 On Fri, Aug 1, 2008 at 4:06 AM, Martin Papy [EMAIL PROTECTED]
 wrote:

 Hello everybody,

 I updated with the last Snapshot. Has I understand, T5 now handles by
 default everything in UTF-8. That is ok for me.

 But how the properties files are handled ?

 I updated all my properties files in UTF-8 Encoding but I get odd
 characters...

 I also tryied with a new test project build with the archetype... same
 behaviour. Did I miss something ? Or is it an issue ?

 Exemple with the archetype :

 Index.properties is in UTF-8 and contains :

 test-msg=Déconnexion

 Html output :

 DÃ(c)connexion

 The page is in UTF-8, the Content-Type is also declaring UTF-8...

 I tried various encoding for the properties file : UTF-8 w/wo BOM,
 ISO-8859-1...

 Any help ?

 Thanks !
 --
 View this message in context:
 http://www.nabble.com/T5-UTF-8-new-behaviour-in-T5.0.14-tp18772210p18772210.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/T5-UTF-8-new-behaviour-in-T5.0.14-tp18772210p18774671.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] Testing body's value

2008-07-16 Thread Martin Papy

Nobody has an ideas about this ?

Martin


Martin Papy wrote:
 
 Hello everyone,
 
 I was wondering if there is a way to test if the t:body will render
 something or not.
 
 In my case, I use the Layout pattern for rendering my pages, but depending
 on the situation, sometimes the body of the layout is empty. In that case
 I would like to display a generic content. So I imagine something like
 this :
 
 t:if test=myBodyEmpty
 Blah blah blah
 t:parameter name=else
 t:body /
 /t:parameter
 /t:if
 
 But I don't know how to write the test isMyBodyEmpty ... Maybe it is not
 possible ?
 
 Regards,
 
 Martin
 

-- 
View this message in context: 
http://www.nabble.com/-T5--Testing-body%27s-value-tp18459705p18485584.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] Testing body's value

2008-07-16 Thread Martin Papy

I don't want to test if the tag body of the html template has something,
but I want to know if the t:body / is empty or not in the case of the
Layout pattern :
http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/layout.html

Regards,

Martin


kristian.marinkovic wrote:
 
 hi martin,
 
 T5 uses a simplified DOM tree to render the template. therefore
 you can access the root element and check via a simplified XPath
 query whether a certain part of the HTML template was rendered
 
 i'd to this check during the cleanupRender event of my page. The
 MarkupWriter will return the Document object with the necessary
 methods to find other nodes.
 
 hope this helps,
 
 g,
 kris
 
 
 
 
 
 Martin Papy [EMAIL PROTECTED] 
 16.07.2008 13:44
 Bitte antworten an
 Tapestry users users@tapestry.apache.org
 
 
 An
 users@tapestry.apache.org
 Kopie
 
 Thema
 Re: [T5] Testing body's value
 
 
 
 
 
 
 
 
 Nobody has an ideas about this ?
 
 Martin
 
 
 Martin Papy wrote:
 
 Hello everyone,
 
 I was wondering if there is a way to test if the t:body will render
 something or not.
 
 In my case, I use the Layout pattern for rendering my pages, but 
 depending
 on the situation, sometimes the body of the layout is empty. In that 
 case
 I would like to display a generic content. So I imagine something like
 this :
 
 t:if test=myBodyEmpty
 Blah blah blah
 t:parameter name=else
 t:body /
 /t:parameter
 /t:if
 
 But I don't know how to write the test isMyBodyEmpty ... Maybe it is 
 not
 possible ?
 
 Regards,
 
 Martin
 
 
 -- 
 View this message in context: 
 http://www.nabble.com/-T5--Testing-body%27s-value-tp18459705p18485584.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-T5--Testing-body%27s-value-tp18459705p18487526.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[T5] Testing body's value

2008-07-15 Thread Martin Papy

Hello everyone,

I was wondering if there is a way to test if the t:body will render
something or not.

In my case, I use the Layout pattern for rendering my pages, but depending
on the situation, sometimes the body of the layout is empty. In that case I
would like to display a generic content. So I imagine something like this :

t:if test=myBodyEmpty
Blah blah blah
t:parameter name=else
t:body /
/t:parameter
/t:if

But I don't know how to write the test isMyBodyEmpty ... Maybe it is not
possible ?

Regards,

Martin
-- 
View this message in context: 
http://www.nabble.com/-T5--Testing-body%27s-value-tp18459705p18459705.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] Instantiate Interfaces

2008-06-27 Thread Martin Papy

In fact I think I am confronted with two different issues :

1 - @Persist behavior

When I use a @Persist, I am aware that the object will only be kept in
'memory' between two request on the same page / component. So in my head I
thought that it was always the same object (the same instance of the object)
used by the BeanEditForm all along the process :

 Display Page A - Submit Form in page A - Display Page A again

- Same instance of my User object because of the @Persist - ==
Wrong ! (at least inside the BeanEditForm)

2 - Mecanism of the BeanEditForm : It recreate an entire object when I
submit the form. That is why it work with the ASO. Because it is always the
same instance of the object that is updated. In fact when using the @Persist
it does not have any effects on the BeanEditForm. 

So... would not it be possible to make the @Persist work the same way that
ASO in this particular case ? It would be very usefull. Hibernate object
manipulation/update would be very easy and powerfull.

Ex : 

1 - Get my User from Hibernate
2 - Pass it to the BeanEditForm
3 - Update the date directly in the bean (because the @Persist would allow
to do so )
4 - use onSuccess to do a Merge and a Commit :)

What is your opinion about that ?

Regards,

Martin

-- 
View this message in context: 
http://www.nabble.com/-T5--Instantiate-%22Interfaces%22-tp18153603p18158657.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]