Skip to main content

Posts

Showing posts with the label crud

Why this table In-Cell editor, doesnt work?

I am trying to figure out, how the primefaces in-cell editor works. For some reason, it does not work. I just see it activating and also i can type, but the values do not change. What is missing? <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core"> <h:form> <p:dataTable id="allSubjects" var="subject" value="#{subjectControllerUpdate.retrieve()}" paginator="true" rows="7" > <p:column headerText="Name" sortBy="#{subject.name}" style="width:200px" > <p:cellEditor>

HTTP PUT Parameter

I create a rest-webservice with the php framework "tonic". I have a User Class and handle it with the library. According to CRUD i use HTTP_PUT to UPDATE the User: function put($request) { $response = new Response($request); $split = explode ('&',$request); $para = array(); foreach($split as $i) { $names = explode('=',$i); $para[$names[0]] = $names[1]; } $response->body = var_dump($para); return $response; } My Question is how do I access the calling parameters? At the moment I parse it manually into an array.