[JBoss JIRA] Resolved: (RF-4209) File Upload: add possibility to upload files with form
by Andrei Markavtsov (JIRA)
[ https://jira.jboss.org/jira/browse/RF-4209?page=com.atlassian.jira.plugin... ]
Andrei Markavtsov resolved RF-4209.
-----------------------------------
Resolution: Done
Assignee: Tsikhon Kuprevich (was: Andrei Markavtsov)
JS API methods added:
1. submitForm ()
Example:
page:
<h:form>
<rich:fileUpload fileUploadListener="#{bean.upload}" uploadData="#{bean.data}"... />
</h:form>
<a href="#" onclick="return $('fileUploadId').component.submitForm()" .../>
java:
List<UploadItem> data ....
public void upload(UploadEvent e) {
List<UploadItem> list = e.getUploadItems();
}
Behavior: form will be submitted to server. All files added to list will be put to model and event.
2. beforeSubmit()
Example:
<h:form>
<rich:fileUpload fileUploadListener="#{bean.upload}" uploadData="#{bean.data}"... />
</h:form>
<h:commandButton onmousedown="return $('fileUploadId').component.beforeSubmit()" ... action="another_page".../>
Behavior: form will submitted to server by command button. Files will be put to model & event. Navigation will be applied according to action defined.
This method sets up necessary request parameters for file uploading. It does NOT submit form. It should be used together with commands.
> File Upload: add possibility to upload files with form
> ------------------------------------------------------
>
> Key: RF-4209
> URL: https://jira.jboss.org/jira/browse/RF-4209
> Project: RichFaces
> Issue Type: Task
> Reporter: Andrei Markavtsov
> Assignee: Tsikhon Kuprevich
> Fix For: 3.2.2
>
>
> Add method to JS API that should set up all necessary params and submit form.
> Files added to list should be applyed to data modal and event.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 7 months
[JBoss JIRA] Created: (RF-4180) demo site: there are two labels for preview code of example: "View Source" and "View page Source"
by Tatyana Romanovich (JIRA)
demo site: there are two labels for preview code of example: "View Source" and "View page Source"
-------------------------------------------------------------------------------------------------
Key: RF-4180
URL: https://jira.jboss.org/jira/browse/RF-4180
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: RF-3.2.2.BETA4
demo site
Reporter: Tatyana Romanovich
Assignee: Nick Belaevski
Priority: Optional
1. Go to the demo site
2. Select any component from follow list:
Ajax Support->Push
Ajax Validators->Ajax Validator
Ajax Output->Include
Ajax Output->Media Output
Ajax Miscellaneous->Log
Rich Output->Modal Panel
Rich Output->Paint2D
Rich Output->Toggle Panel
Data Iteration->Column (Column Group, Data table)->Extended Data Model
Data Iteration->Data Table Scroller
Data Iteration->Srollable Data Table
Data Iteration->Table Filtering->External Filtering Usage
Rich Miscellaneous->Insert
3. Verify label of command link for preview source code
Result: "View Page Source"
Where: Label
Rich Trees->Tree->Default Tree Model: "Open Page Source"
Rich Trees->Tree->Editable Tree with Drag and Drop support: "Open Page Source"
Rich Input->Calendar-> Organizer Creation "Page source"
Ajax Validators->Bean Validator "Page Code"
All other pages has label "View Source"
All labels should have the same value
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 7 months