T5 : Failure writing parameter value of component because read only ???

2007-12-18 Thread Penyihir Kecil
Igot this err when i try to insert :

ERROR

Failure writing parameter value of component
admin/PlayerForm:positionselect: Expression position for class
edu.its.dreamteam.web.pages.admin.PlayerForm is read-only.


the error showed higlight in this part (in PlayerForm.tml):

tdt:select t:id=positionSelect model=positionSelectionModel
value=position encoder=positionValueEncoder label=Position//td


could anyone could help me what had happened to my code ???
whats wrong with my code ?

here's my code :

*Club.java*

public class Club extends BaseBean implements Serializable{
/**
 *
 */
private static final long serialVersionUID = 1L;
private String idClub;
private String clubName;

public String getIdClub() {
return idClub;
}

public void setIdClub(String idClub) {
this.idClub = idClub;
}

public String getClubName() {
return clubName;
}

public void setClubName(String clubName) {
this.clubName = clubName;
}

@Override
protected String getPrimaryKey() {
return getIdClub();
}

}

*Position.java*
public class Position extends BaseBean implements Serializable{
/**
 *
 */
private static final long serialVersionUID = 1L;
private String idPosition;
private String position;
private Integer earnPoint;

public String getIdPosition() {
return idPosition;
}

public void setIdPosition(String idPosition) {
this.idPosition = idPosition;
}

public String getPosition() {
return position;
}

public void setPosition(String position) {
this.position = position;
}

public Integer getEarnPoint() {
return earnPoint;
}

public void setEarnPoint(Integer earnPoint) {
this.earnPoint = earnPoint;
}

@Override
protected String getPrimaryKey() {
return getIdPosition();
}

}

*Player.java

*public class Player extends BaseBean implements Serializable{*
/**
 *
 */
   * private static final long serialVersionUID = 1L;
private String idPlayer;
private String firstName;
private String midName;
private String lastName;
private String idPosition;
private String idClub;
private Integer defaultPrice;
private String number;

private Position position;
private Club club;

public String getIdPlayer() {
return idPlayer;
}
public void setIdPlayer(String idPlayer) {
this.idPlayer = idPlayer;
}

public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}

public String getMidName() {
return midName;
}
public void setMidName(String midName) {
this.midName = midName;
}


public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}

public String getIdPosition() {
idPosition = getPosition().getIdPosition();
return idPosition;
}
public void setIdPosition(String idPosition) {
this.idPosition = idPosition;
this.getPosition().setIdPosition(idPosition);
}

public String getIdClub() {
idClub = getClub().getIdClub();
return idClub;
}
public void setIdClub(String idClub) {
this.idClub = idClub;
getClub().setIdClub(idClub);
}

public Integer getDefaultPrice() {
return defaultPrice;
}

public void setDefaultPrice(Integer defaultPrice) {
this.defaultPrice = defaultPrice;
}

public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}

public Position getPosition() {
if(position==null){
position = new Position();
}
return position;
}

public void setPosition(Position position) {
this.position = position;
}
public Club getClub() {
if(club == null){
club = new Club();
}
return club;
}
public void setClub(Club club) {
this.club = club;
}
@Override
protected String getPrimaryKey() {
return getIdPlayer();
}

}


Re: T5: JumpStart 3.0.0 Preview ready for comments

2007-12-16 Thread Penyihir Kecil
Hi Geoff

i've also succesfully installed it
i'm looking for user autentification and best practive for ur edit form.

thnx a lot

On 12/17/07, Michael Courcy [EMAIL PROTECTED] wrote:
 Hi Geoff

 I've successfully installed the jumpstart-min on windows XP with JBOSS
 4.2.2GA

 I start  digging now.

 Thanks a lot.
 Michael


 Geoff Callender a écrit :
  Hi all,
 
  I've reworked JumpStart to address Tapestry 5, and I need feedback on
  how to make it as good as it can be...
 
  If you don't know JumpStart, its purpose is to get newcomers
  up-to-speed with Tapestry as fast as possible.  It's aim is to dispel
  the myth of Tapestry's steep learning curve by helping people get
  productive quickly.  The better that JumpStart is, the better I hope
  it will be for all the Tapestry community.
 
  So, I'm looking for heaps of feedback on its strengths, weaknesses,
  choice of examples, quality of code, correctness, etc., anything that
  will make it more helpful to more people!
 
  To get it, go to http://files.doublenegative.com.au/jumpstart/ , click
  on Downloads, and look for jumpstart-min-3.0.0.preview.1.zip.
 
  Cheers,
 
  Geoff Callender
  http://files.doublenegative.com.au/jumpstart/
 
  You can mail me directly or reply to this thread.  Either is fine.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Michael Courcy
 http://courcy.blogspot.com


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



Re: Sortable image in Grid Component doesn't transparent

2007-12-15 Thread Penyihir Kecil
oo...thnx for your information...

On Dec 14, 2007 1:23 AM, Daniel Jue [EMAIL PROTECTED] wrote:

 To override the default image I think you can specify a new image as a
 parameter.

 This is a problem with IE not handling PNG translucency correctly.
 There are scripts that can fix this, but they are kind of hokey. I've
 tried the WebFX with some success.  You need to inject a js and a css,
 and then the css loads an HTC file which is something IE specific.
 Makes me want to punch something.

 To keep your sanity, just convert the PNGs to GIFs (Gasp!).  You don't
 really need translucency on that poor little button, GIF transparency
 should be enough.


 On Dec 13, 2007 12:20 PM, Penyihir Kecil [EMAIL PROTECTED] wrote:
  I have a problem with my grid components...
  the sortable image doesn't view transparancy when it's viewed by IE
  does anyone know how to fix it or override the default image
 
  -
  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]




Re: T5: JumpStart 3.0.0 Preview ready for comments

2007-12-15 Thread Penyihir Kecil
wow...
nice to hear that
i'll try as soon as possible.
thnx geoff

On Dec 15, 2007 6:54 AM, Geoff Callender 
[EMAIL PROTECTED] wrote:

 Hi all,

 I've reworked JumpStart to address Tapestry 5, and I need feedback on
 how to make it as good as it can be...

 If you don't know JumpStart, its purpose is to get newcomers up-to-
 speed with Tapestry as fast as possible.  It's aim is to dispel the
 myth of Tapestry's steep learning curve by helping people get
 productive quickly.  The better that JumpStart is, the better I hope
 it will be for all the Tapestry community.

 So, I'm looking for heaps of feedback on its strengths, weaknesses,
 choice of examples, quality of code, correctness, etc., anything that
 will make it more helpful to more people!

 To get it, go to http://files.doublenegative.com.au/jumpstart/ , click
 on Downloads, and look for jumpstart-min-3.0.0.preview.1.zip.

 Cheers,

 Geoff Callender
 http://files.doublenegative.com.au/jumpstart/

 You can mail me directly or reply to this thread.  Either is fine.

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




t5 : how to handle add and edit form in one page only ?

2007-12-15 Thread Penyihir Kecil
i get another problem here ^_^
when i tried to make add and edit form in one page...
in my grid table there is a link to edit the row...
i used this code to add and edit (in one page) :

package edu.its.dreamteam.web.pages.admin;

import org.apache.tapestry.ValueEncoder;
import org.apache.tapestry.annotations.Component;
import org.apache.tapestry.annotations.Persist;
import org.apache.tapestry.corelib.components.Form;
import org.apache.tapestry.ioc.annotations.Inject;

import edu.its.dreamteam.daf.beans.Position;
import edu.its.dreamteam.daf.dao.IPositionDao;
import edu.its.dreamteam.web.pages.BaseFormPage;
import edu.its.dreamteam.web.util.StringValueEncoder;

public class PositionForm extends BaseFormPage {
@Inject
private IPositionDao positionDao;

@Persist
private Position position;


@Component
private Form positionForm;



public Position getPosition() {
if(position == null){
position = new Position();
}
return position;
}

public void setPosition(Position position) {
this.position = position;
}

public IPositionDao getPositionDao() {
return positionDao;
}

public ValueEncoderString getValueEncoder(){
return new StringValueEncoder();
}

void onPrepare(){
if(position == null){
position = new Position();
}
}

Object onSuccessFromPositionForm(){
if(getPosition().getIdPosition()==null){
getPosition().setIdPosition(getIdPrimaryKey().generateId());
getPositionDao().insert(getPosition());
}else{
getPositionDao().update(getPosition());
setPosition(null);
}

return PositionGrid.class;
}

void onActionFromClear(){
setPosition(null);
positionForm.clearErrors();
}

void onActivate(String idPosition){
if(idPosition!=null  !idPosition.equals()){
setPosition((Position)
getPositionDao().findByPrimaryKey(idPosition));
}


}

String onPassivate(){
return getPosition().getIdPosition();
}


}

after i finished edit the row. i want to add new one, but the strange is
i still get the past value of edit page (the form showed the last edit
entry).
am i missing something in my code ??
could anyone help me ?

thnx u


Sortable image in Grid Component doesn't transparent

2007-12-13 Thread Penyihir Kecil
I have a problem with my grid components...
the sortable image doesn't view transparancy when it's viewed by IE
does anyone know how to fix it or override the default image

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



T5 : null display SELECT component ?

2007-12-11 Thread Penyihir Kecil
i tried select component but i have difficulty and got stuck on it.
i had already read the archive milis, but still have no idea what had
happened with mine
here's my code

i always get null value(no data) to diplay in my select component.
when i debug it,

getPositionList() in Home.java always return a list of value.
but it doesn't work when i try to call the model : return new
PositionSelectionModel(getPositionList());

does anyone can help clear me up

thnx...
*
-
Home.tml*
select t:type=select t:id=position value=position
model=positionSelectionModel encoder=valueEncoder/

-
*Home.java
.

*private PositionSelectionModel positionSelectionModel;
public PositionSelectionModel getPositionSelectionModel() {
setPositionList(getPositionDao().queryForList(, ));
return new PositionSelectionModel(getPositionList());
}
public ValueEncoderPosition getValueEncoder(){
return new PositionValueEncoder(getPositionList());
}

..
--
*PositionSelectionModel .java*

public class PositionSelectionModel implements SelectModel {
private ListPosition positionList;

public PositionSelectionModel(ListPosition positionList){
this.positionList = positionList;
}

public ListOptionGroupModel getOptionGroups() {
return null;
}

public ListOptionModel getOptions() {
ListOptionModel optionModelList = new ArrayListOptionModel();

for(Position position: positionList) {
System.out.println(position.getPosition());
optionModelList.add(new OptionModelImpl(position.getPosition(),
false, position,new String[0]));
}

return optionModelList;
}

public void visit(SelectModelVisitor arg0) {

}

}
--
*PositionValueEncoder.java*

public class PositionValueEncoder implements ValueEncoderPosition {
private ListPosition positionList;

public PositionValueEncoder(List positionList) {
this.positionList = positionList;
}
public String toClient(Position position) {
return position.getPosition();
}

public Position toValue(String value) {
for(Position position : positionList) {
if(position.getPosition().equals(value)) {
return position;
}
}
return null;
}
}


T5 : NULL (no data)display for SELECT component ?

2007-12-11 Thread Penyihir Kecil
i tried select component but i have difficulty and got stuck on it.
i had already read the archive milis, but still have no idea what had
happened with mine
here's my code

i always get null value(no data) to diplay in my select component.
when i debug it,

getPositionList() in Home.java always return a list of value.
but it doesn't work when i try to call the model : return new
PositionSelectionModel(getPositionList());

does anyone can help clear me up

thnx...
*
-
Home.tml*
select t:type=select t:id=position value=position
model=positionSelectionModel encoder=valueEncoder/

-
*Home.java
.

*private PositionSelectionModel positionSelectionModel;
public PositionSelectionModel getPositionSelectionModel() {
setPositionList(getPositionDao().queryForList(, ));
return new PositionSelectionModel(getPositionList());
}
public ValueEncoderPosition getValueEncoder(){
return new PositionValueEncoder(getPositionList());
}

..
--
*PositionSelectionModel .java *

public class PositionSelectionModel implements SelectModel {
private ListPosition positionList;

public PositionSelectionModel(ListPosition positionList){
this.positionList = positionList;
}

public ListOptionGroupModel getOptionGroups() {
return null;
}

public ListOptionModel getOptions() {
ListOptionModel optionModelList = new ArrayListOptionModel();

for(Position position: positionList) {
System.out.println(position.getPosition());
optionModelList.add(new OptionModelImpl(position.getPosition(),
false, position,new String[0]));
}

return optionModelList;
}

public void visit(SelectModelVisitor arg0) {

}

}
--

*PositionValueEncoder.java*

public class PositionValueEncoder implements ValueEncoderPosition {
private ListPosition positionList;

public PositionValueEncoder(List positionList) {
this.positionList = positionList;
}
public String toClient(Position position) {
return position.getPosition();
}

public Position toValue(String value) {
for(Position position : positionList) {
if(position.getPosition().equals(value)) {
return position;
}
}
return null;
}
}


Re: [T5] How Add and Image to Grid Column Label.

2007-12-10 Thread Penyihir Kecil
it might be help :
---
GridClub.tml
--
form t:type=Form t:id=clubForm
table t:type=grid rowsPerPage=5 pagerPosition=top
source=clubList row=club remove=idClub model=clubModel
t:parameter name=deleteCell
input t:type=Checkbox t:id=delete value=delete/
/t:parameter
t:parameter name=updateCell
a t:type=PageLink t:id=update page=admin/FormClub
context=club.idClubimg src=../images/edit.gif//a
/t:parameter
!-- t:parameter name=deleteCell
a t:type=ActionLink t:id=delete
context=club.idClubdelete/a
/t:parameter--
/table
input type=submit value=delete/

-
GridClub.java
-
@Inject
private IClubDao clubDao;
private ListClub clubList;
private Club club;  

@Retain
private BeanModel clubModel;
@Inject
private BeanModelSource beanModelSource;
@Inject
private ComponentResources resources;

private boolean delete;
public ListString deletedList;


public boolean isDelete() {
return delete;
}

public void setDelete(boolean delete) {
if(delete){ 
getDeletedList().add(club.getIdClub());
}

}


public ListString getDeletedList() {
if(deletedList == null){
deletedList = new ArrayListString();  

}
return deletedList;
}

void pageLoaded(){
clubModel = beanModelSource.create(Club.class, true, resources);
clubModel.add(delete,null);
clubModel.add(update,null);

}

public Club getClub() {
return club;
}
public void setClub(Club club) {
this.club = club;
}
public IClubDao getClubDao() {
return clubDao;
}
public ListClub getClubList() {
if(clubList == null){
clubList = new ArrayListClub();   
clubList = getClubDao().queryForList(, );
}

return clubList;
}

public BeanModel getClubModel() {
return clubModel;
}

Object onSuccessFromClubForm(){
for (IteratorString iter = getDeletedList().iterator(); 
iter.hasNext();) {
String element = iter.next();
setClub((Club) getClubDao().findByPrimaryKey(element));
getClubDao().delete(getClub());

}   
deletedList = null;
return GridClub.class;
}

On 12/10/07, Cristian Gonzalo Gary [EMAIL PROTECTED] wrote:

 Hello
 I need to modified the Column label, and put into and image with a link .

 Thanks.
 Gracias.
 --
 View this message in context:
 http://www.nabble.com/-T5--How-Add-and-Image-to-Grid-Column-Label.-tp14242580p14242580.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]



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



Re: T5: multiple forms

2007-12-08 Thread Penyihir Kecil
@OnEvent(component=searchForm 1, value=success) --- what else value can
be filled beside success ??

On Dec 8, 2007 10:51 PM, Ted Steen [EMAIL PROTECTED] wrote:

 It should be onSuccessFromSearchForm1() and onSuccessFromSearchForm2()
 as it is the form, not the button that succeeds.

 alternatively

 @OnEvent(component=searchForm1, value=success)
 public void search1()
 {
 }

 2007/12/8, Angelo Chen [EMAIL PROTECTED]:
 
  Hi,
 
  I have two forms in a page, and I need to determine which form trigger
 the
  onSuccess, tried following code, but does not work, any idea? Thanks,
  A.C.
 
  String onSuccessFromSubmit2() {
  System.out.println(submit1);
  return null;
   }
 
   String onSuccessFromSubmit2() {
  System.out.println(submit2);
  return null;
   }
 
  t:form t:id=searchForm1 t:clientValidation=false
  input t:type=submit name=Submit1 t:id=Submit1 value=Search
 Now
  /br /
   /t:form
 
  t:form t:id=searchForm2 t:clientValidation=false
  input t:type=submit name=Submit2 t:id=Submit2 value=Search
 Now
  /br /
  /t:form
  --
  View this message in context:
 http://www.nabble.com/T5%3A-multiple-forms-tf4967253.html#a14229085
  Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 /ted

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




T5 : Getting Error when invoke Form

2007-12-08 Thread Penyihir Kecil
i always getting this error message :

Processing of request failed with uncaught exception: An event handler for
component admin/FormFormation:formationform returned the value true (from
method org.apache.tapestry.corelib.components.Form.onAction(java.lang.Object[])
(at Form.java:283)).  Return type java.lang.Boolean can not be handled.
Configured return types are java.lang.Class, java.lang.String,
org.apache.tapestry.Link, org.apache.tapestry.StreamResponse,
org.apache.tapestry.runtime.Component.


my code :
form t:type=Form t:id=formationForm
  t:errors/
  t:label for=formationField/ :
  input t:type=TextField t:id=formationField value=
Formation.formation validate=required,minlength=3 size=20
label=username/
   input type=submit value=ok/
 /form



void onPrepare(){
if (formation == null){
formation = new Formation();

}
}

Object onSuccessFromFormationForm(){
return GridFormation.class;
}
public IFormationDao getFormationDao() {
return formationDao;
}

public Formation getFormation() {
return formation;
}
--


could anyone could explain me why?


T5: how to override default msg error

2007-12-08 Thread Penyihir Kecil
i have a textfield that must be int value (based on my entity bean type).
tapestry does the validate automatically and give the message :
- The input value 'abc' is not parseable as an integer value.

how can i overwrite the default error message ?

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



Re: T5: how to override default msg error

2007-12-08 Thread Penyihir Kecil
it works
thnx Filip...
but is there any way to do it more simple ^_^ (just curious)

On Dec 9, 2007 1:21 AM, Filip S. Adamsen [EMAIL PROTECTED] wrote:

 Create a package named org.apache.tapestry.internal and put a
 ValidationMessages.properties file there. If you're using Maven you'll
 have to put this in src/main/resources/org/apache/tapestry/internal.

 If you want to override the error banner while you're at it, create a
 package name org.apache.tapestry.corelib.components and put a
 Errors.properties file in there. Again, in
 src/main/resources/org/apache/tapestry/corelib/components if you're
 using Maven.

 You can find the default versions of these files at the same locations
 in the Tapestry 5 source.

 Hope this helps.

 -Filip

 Penyihir Kecil skrev:
  i have a textfield that must be int value (based on my entity bean
 type).
  tapestry does the validate automatically and give the message :
  - The input value 'abc' is not parseable as an integer value.
 
  how can i overwrite the default error message ?
 
  -
  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]




T3 : How to include script script.aculo.us to tapestry 3 ?

2007-11-15 Thread Penyihir Kecil
Hi... i tried simple autocompletion using scriptaculous in tapestry 3
but it doesn't work

Home.html

html
head
titlescript.aculo.us Autocompleter functional test file/title
  meta http-equiv=content-type content=text/html; charset=utf-8 /
script src=js/prototype.js type=text/javascript/script
script src=js/scriptaculous.js type=text/javascript/script
script src=js/unittest.js type=text/javascript/script

/head

body
   input id=inputbox name=something type=text/
   div id=result style=display:none;inside/div

/body
script type=text/javascript language=javascript charset=utf-8
// ![CDATA[
  new 
Ajax.Autocompleter('inputbox','result','http://localhost:8080/Autocomplete.html');
// ]]
/script
/html

Home.page

Home.java
 


Autocomplete.html

litest1/li
litest2/li

Autocomplete.page

Autocomplete.java



does anybody help me, please.
thnx u

dwi ardi irawan

   
-
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.

T5 : How to use checkbox inside of the grid components

2007-11-12 Thread Penyihir Kecil

hi...
i have list of daya  displayed by grid component
now i want to add checkbox for each row
could anyone give me an example how to do it ?

thnx


Dwi Ardi Irawan

~  ...and the story goes ~
Blog : http://dwiardiirawan.blogspot.com

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

T5 : How to use checkbox inside of the grid components

2007-11-10 Thread Penyihir Kecil
hi...
i have list of daya  displayed by grid component
now i want to add checkbox for each row
could anyone give me an example how to do it ?

thnx

dwi ardi irawan
http://dwiardiirawan.blogspot.com


Dwi Ardi Irawan

~  ...and the story goes ~
Blog : http://dwiardiirawan.blogspot.com

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[T3] TextArea using wrap attribute ?

2007-10-24 Thread Penyihir Kecil
Use the HTML wrap attribute as an informal parameter to control word  
wrapping. Wrap attribute values include: off, vitual, physical, soft 
and  hard.

then what does it mean with off, virtual, physical, soft and hard ?
could anybody give me some explanation ?
thnx



Dwi Ardi Irawan

~  ...and the story goes ~
Blog : http://dwiardiirawan.blogspot.com

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

why Tapestry 5.0.6 hasn't released yet?

2007-10-23 Thread Penyihir Kecil
i saw @
http://tapestry.formos.com/maven-snapshot-repository/org/apache/tapestry/tapestry-core/

tapestry 5.0.6-SNAPSHOT development has moved to tapestry 5.0.7-SNAPSHOT.
then...why the 5.0.6 hasn't released yet ?

sorry for bothering
i just curious...

^_^


Dwi Ardi Irawan

~  ...and the story goes ~
Blog : http://dwiardiirawan.blogspot.com

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: i don't like the new tapestry 5 based on xml ?

2007-09-30 Thread Penyihir Kecil
ow i can see now why it used *.tml
thnx nick for showing me the link

Nick Westgate [EMAIL PROTECTED] wrote: Marketing eh? Interesting idea.
Here are the actual reasons from the dev list discussion:
http://www.nabble.com/-DISCUSS--T5-template-extension-change-tf4502622.html


1) Use the extension .tml (Tapestry Markup Language) for Tapestry
templates, rather than .html.  This reflects the goal of using Tapestry to
serve many kinds of markup, not just HTML (and XHTML).

2) Move web context templates from WEB-INF to / (root).  This will allow
relative paths to resources (images, etc.), much as in Tapestry 4.

3) Extend the TapestryFilter to block access to .tml files from the
client.  This addresses security concerns related to external users gaining
access to raw templates (much as we are careful to block access to Java
.class files via /asset).


Basically the tml suffix allows templates to be protected by Tapestry outside
WEB-INF while *.html files are served as static files by the container.

Cheers,
Nick.


Penyihir Kecil wrote:
 i'm not saying i like unclosed tag
 we're not work alone man...
 when you're work on team
 everything could be happenned
 it's not about smart or dumb (sorry)
 
 just my humble opinion
 
 and also i think
 you don't have to personal attacking me
 it just my opinion about tapestry
 not personal attacking
 you should learn how to argue politey
 
 --- Chris Lewis  wrote:
 
 If you're only real concern is that fact that you
 have to have 
 well-formed documents, I'd suggest you examine your
 coding practices. 
 Having unclosed tags is not smart as it will break
 the rendering. As far 
 as *tml, I agree its annoying and its most likely
 named that for 
 marketing reasons, but I dont use it. I use *html.

 chris

 Penyihir Kecil wrote:
 dunno why but i'm little bothered by the new
 concept
 of tapestry 5 based on xml

 if it's true...then
 it will has strict rules when writing html tag
 it has to be xml rules not html

 
 In a change from Tapestry 4, under Tapestry 5,
 component templates are well formed XML documents.
 That means that every open tag must have a
 matching
 close tag, every attribute must be quoted, and so
 forth.
 

 [http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/templates.html]
 in html when we forget to close the tag it will be
 ok
 but in xml it will be show as an error

 secondthe type .tml
 it's really annoying
 he3x...just i will looks strange

 just my 2 cents





 
 Be a better Heartthrob. Get better relationship
 answers from someone who knows. Yahoo! Answers -
 Check it out. 
 http://answers.yahoo.com/dir/?link=listsid=396545433

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


 
 
 

 
 Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for 
 today's economy) at Yahoo! Games.
 http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  
 
 -
 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]



   
-
Got a little couch potato? 
Check out fun summer activities for kids.

i don't like the new tapestry 5 based on xml ?

2007-09-29 Thread Penyihir Kecil
dunno why but i'm little bothered by the new concept
of tapestry 5 based on xml

if it's true...then
it will has strict rules when writing html tag
it has to be xml rules not html


In a change from Tapestry 4, under Tapestry 5,
component templates are well formed XML documents.
That means that every open tag must have a matching
close tag, every attribute must be quoted, and so
forth.

[http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/templates.html]

in html when we forget to close the tag it will be ok
but in xml it will be show as an error

secondthe type .tml
it's really annoying
he3x...just i will looks strange

just my 2 cents



   

Be a better Heartthrob. Get better relationship answers from someone who knows. 
Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=listsid=396545433

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



Re: i don't like the new tapestry 5 based on xml ?

2007-09-29 Thread Penyihir Kecil

i'm not saying i like unclosed tag
we're not work alone man...
when you're work on team
everything could be happenned
it's not about smart or dumb (sorry)

just my humble opinion

and also i think
you don't have to personal attacking me
it just my opinion about tapestry
not personal attacking
you should learn how to argue politey

--- Chris Lewis [EMAIL PROTECTED] wrote:

 If you're only real concern is that fact that you
 have to have 
 well-formed documents, I'd suggest you examine your
 coding practices. 
 Having unclosed tags is not smart as it will break
 the rendering. As far 
 as *tml, I agree its annoying and its most likely
 named that for 
 marketing reasons, but I dont use it. I use *html.
 
 chris
 
 Penyihir Kecil wrote:
  dunno why but i'm little bothered by the new
 concept
  of tapestry 5 based on xml
 
  if it's true...then
  it will has strict rules when writing html tag
  it has to be xml rules not html
 
  
  In a change from Tapestry 4, under Tapestry 5,
  component templates are well formed XML documents.
  That means that every open tag must have a
 matching
  close tag, every attribute must be quoted, and so
  forth.
  
 

[http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/templates.html]
 
  in html when we forget to close the tag it will be
 ok
  but in xml it will be show as an error
 
  secondthe type .tml
  it's really annoying
  he3x...just i will looks strange
 
  just my 2 cents
 
 
 
 
 


  Be a better Heartthrob. Get better relationship
 answers from someone who knows. Yahoo! Answers -
 Check it out. 
 

http://answers.yahoo.com/dir/?link=listsid=396545433
 
 

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



   

Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for 
today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

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