Error Messaging/Validation

2008-10-17 Thread Joshua Oransky
Is there any type of error messaging or validation in Sling? I want to  
be able to give my users information about whether they entered their  
data correctly, and intercept it before it's saved if they have not.  
It would also be nice to simply be able to add messages to some sort  
of stack so that the resulting page they end up on can display  
information about the last content edit.


I tried simply adding the message as a hidden field and then getting  
the parameter in the request, but if I use the :redirect parameter,  
predictably I get a full redirect, which loses any of these additional  
params.


I saw a few messages in the mailing list about Validation, but I can't  
find anything specific in the docs or examples on how to implement it.


-Josh


[jira] Created: (SLING-701) HtmlResponse should replace all place holders

2008-10-17 Thread Carsten Ziegeler (JIRA)
HtmlResponse should replace all place holders
-

 Key: SLING-701
 URL: https://issues.apache.org/jira/browse/SLING-701
 Project: Sling
  Issue Type: Bug
  Components: API
Affects Versions: API 2.0.2
Reporter: Carsten Ziegeler
Assignee: Carsten Ziegeler
 Fix For: API 2.0.4


Currently the HtlmResponse leaves the placeholders in the response if there is 
no value for a placeholder. Instead it should remove the placeholder as
otherwise the client has to take extra care to detect if a value is really 
missing 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.